Skip to content

Commit

Permalink
Merge branch 'main' into bump-version/0.70.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdrz authored Aug 16, 2024
2 parents 2c8c086 + 7efb924 commit 1d59352
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/create-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Create tag for release

on:
pull_request:
types:
- closed

jobs:
create-tag:
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')
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Extract version
run: |
echo "version=$(cargo pkgid -p bindgen | cut -d '#' -f 2)" >> $GITHUB_ENV
- name: Create tag
run: |
TAG_NAME="v${{ env.VERSION }}"
git tag $TAG_NAME
git push origin $TAG_NAME

0 comments on commit 1d59352

Please sign in to comment.