File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ # example 1: on push to master
2+ name : Bump version
3+ on :
4+ workflow_call :
5+ secrets :
6+ token :
7+ required : true
8+ jobs :
9+ build :
10+ runs-on : ubuntu-22.04
11+ permissions :
12+ contents : write
13+ steps :
14+ - uses : actions/checkout@v4
15+ with :
16+ fetch-depth : ' 0'
17+
18+ - name : Bump version and push tag
19+ uses : anothrNick/github-tag-action@v1 # Don't use @master or @v1 unless you're happy to test the latest version
20+ id : tag_version
21+ env :
22+ GITHUB_TOKEN : ${{ secrets.token }}
23+ TAG_PREFIX : v
24+
25+ - name : Create a GitHub release
26+ uses : ncipollo/release-action@v1
27+ with :
28+ tag : ${{ steps.tag_version.outputs.new_tag }}
29+ name : ${{ steps.tag_version.outputs.new_tag }}
30+ generateReleaseNotes : true
You can’t perform that action at this time.
0 commit comments