Create TAG #25
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 | |
# Triggered manually or from Update | |
on: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
on-success: | |
name: Create TAG | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Flutter version as ENV | |
run: | | |
echo "flutter_version=$(sh .github/scripts/extract_flutter_version.sh)" >> $GITHUB_ENV | |
- name: Print Flutter Version | |
run: | | |
echo "Flutter version is: ${{ env.flutter_version }}" | |
- name: Create tag | |
uses: actions/github-script@v7 | |
with: | |
github-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} # Use custom token to trigger following workflows | |
script: | | |
github.rest.git.createRef({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
ref: "refs/tags/${{ env.flutter_version }}", | |
sha: context.sha | |
}) |