File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Create tag for release
2
+
3
+ on :
4
+ pull_request :
5
+ types :
6
+ - closed
7
+
8
+ jobs :
9
+ create-tag :
10
+ if : github.event.pull_request.merged == true && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && startsWith(github.event.pull_request.head.ref, 'bump-version')
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout code
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Install rust toolchain
17
+ uses : dtolnay/rust-toolchain@stable
18
+
19
+ - name : Extract version
20
+ run : |
21
+ echo "version=$(cargo pkgid -p bindgen | cut -d '#' -f 2)" >> $GITHUB_ENV
22
+
23
+ - name : Create tag
24
+ run : |
25
+ TAG_NAME="v${{ env.VERSION }}"
26
+ git tag $TAG_NAME
27
+ git push origin $TAG_NAME
You can’t perform that action at this time.
0 commit comments