Formatted CONTRIBUTING.md
#33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |