-
Notifications
You must be signed in to change notification settings - Fork 7
34 lines (31 loc) · 1 KB
/
drawio-export.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Keep draw.io export synchronized
on:
push:
branches:
- main
paths:
- "**.drawio"
- .github/workflows/drawio-export.yml
jobs:
drawio-export:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Export drawio files to asciidoctor and png files
uses: rlespinasse/[email protected]
with:
format: adoc
output: drawio-assets
transparent: true
- name: Get author and committer info from HEAD commit
uses: rlespinasse/[email protected]
- name: Commit changed files
uses: stefanzweifel/[email protected]
with:
commit_message: "docs: sync draw.io exported files"
commit_user_name: "${{ env.GIT_COMMIT_COMMITTER_NAME }}"
commit_user_email: "${{ env.GIT_COMMIT_COMMITTER_EMAIL }}"
commit_author: "${{ env.GIT_COMMIT_AUTHOR }}"