-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1 KB
/
documentation.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
35
36
37
name: Document GitHub action
on:
push:
paths:
- ".github/workflows/scheduled.yml"
- ".github/workflows/scheduled-advanced.yml"
- ".github/workflows/scheduled-own-template.yml"
- ".github/workflows/documentation.yml"
- "action.yml"
- "package.json"
- "README.md"
permissions:
contents: write
jobs:
documentation:
runs-on: ubuntu-latest
name: Write documentation
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Documentation action
id: documentation
uses: katydecorah/[email protected]
with:
example-workflow-file: "scheduled.yml"
additional-workflow-file-prefix: "scheduled"
- name: Commit files
if: steps.documentation.outputs.update == 'true'
run: |
git pull
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -am "Update documentation"
git push