Skip to content

Commit 1d59352

Browse files
authored
Merge branch 'main' into bump-version/0.70.0
2 parents 2c8c086 + 7efb924 commit 1d59352

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/create-tag.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

0 commit comments

Comments
 (0)