Triggering workflow from set-version #22
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: Prepare Release Tag | |
on: | |
push: | |
tags: | |
- "[0-9].[0-9].[0-9]" | |
jobs: | |
build: | |
name: Prepare Release Tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set Version | |
run: ./scripts/set-version.sh ${{ github.ref_name }} | |
- name: Commit new version | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
branch: master | |
- name: Create release tag | |
run: | | |
tag="v.${{ github.ref_name }}" | |
message="Release version: ${{ github.ref_name }}" | |
git config user.name "action user" | |
git config user.email "[email protected]" | |
git tag -a "${tag}" -m "${message}" | |
git push origin "${tag}" | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} |