File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build changelog
2+ on :
3+ repository_dispatch :
4+ types : [ trigger-changelog-workflow ]
5+ workflow_dispatch :
6+ inputs :
7+ commit_message :
8+ description : " Commit message"
9+ required : false
10+
11+ jobs :
12+ package :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout repo
16+ uses : actions/checkout@v2
17+ with :
18+ fetch-depth : 0
19+ submodules : recursive
20+ - uses : actions/checkout@v2
21+ - name : build doctum docs
22+ uses : sudo-bot/action-doctum@v5
23+ with :
24+ config-file : doctum.php
25+ # parse, render or update
26+ method : " update"
27+ # (optional) defaults to '--output-format=github --no-ansi --no-progress -v'
28+ cli-args : " --output-format=github --no-ansi --no-progress -v"
29+ - uses : oleksiyrudenko/gha-git-credentials@v2-latest
30+ with :
31+ token : ' ${{ secrets.GITHUB_TOKEN }}'
32+ - run : " git commit -m \" docs: 📝 Updated API docs for commit ${{ github.sha }}\" -a"
33+ if : ${{ !github.event.inputs.commit_message && !github.event.inputs.next_version }}
34+ - run : " git commit -m \" ${{ github.event.inputs.commit_message }}\" -a"
35+ if : ${{ github.event.inputs.commit_message }}
36+ - name : Push changes
37+ uses : ad-m/github-push-action@master
38+ with :
39+ github_token : ${{ secrets.GITHUB_TOKEN }}
40+ branch : ${{ github.ref }}
You can’t perform that action at this time.
0 commit comments