Skip to content

trying to use PAT to trigger workflow another workflow #18

trying to use PAT to trigger workflow another workflow

trying to use PAT to trigger workflow another workflow #18

Workflow file for this run

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
- 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 "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git tag -a "${tag}" -m "${message}"
git push origin "${tag}"
env:
GITHUB_TOKEN: ${{ secrets.PAT }}