File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : TOC Bump
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ message :
6+ description : ' Commit message'
7+ required : false
8+ default : ' TOC Bump'
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v3
16+
17+ - name : Get next version
18+ uses : reecetech/version-increment@2023.9.3
19+ id : version
20+ with :
21+ scheme : semver
22+ increment : patch
23+
24+ - name : Create & push empty commit
25+ run : |
26+ git config --global user.email "${{ github.actor }}@users.noreply.github.com"
27+ git config --global user.name "${{ github.actor }}"
28+ git commit --allow-empty -m "${{ github.event.inputs.message }}"
29+ git push
30+
31+ - name : Publish release
32+ uses : softprops/action-gh-release@v1
33+ with :
34+ # this cannot be ${{ secrets.GITHUB_TOKEN }} because that'll block the on release publish workflow from running
35+ token : ${{ secrets.PERSONAL_GITHUB_TOKEN }}
36+ name : ${{ steps.version.outputs.v-version }}
37+ tag_name : ${{ steps.version.outputs.v-version }}
You can’t perform that action at this time.
0 commit comments