Skip to content

Commit

Permalink
Another attempt at using a personal access token to trigger the next …
Browse files Browse the repository at this point in the history
…workflow
  • Loading branch information
christianrowlands committed Dec 20, 2023
1 parent f7fbd49 commit fb0709e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/set_version.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Sets the version for a release and tags the repo
run-name: Set the version number to ${{ inputs.version }}

on:
workflow_dispatch:
Expand All @@ -16,6 +17,8 @@ jobs:
with:
fetch-depth: 0
ref: main
# You must use a personal access token when pushing the tag or it won't trigger the next workflow (purposefully done by GH to prevent runaway recursive workflows)
token: ${{ secrets.MY_GH_TOKEN }}

- name: Set version in build.gradle
run: |
Expand All @@ -42,9 +45,6 @@ jobs:
fi
- name: Create and push tag
env:
# You must use a personal access token when pushing the tag or it won't trigger the next workflow (purposefully done by GH to prevent runaway recursive workflows)
GITHUB_TOKEN: ${{ secrets.MY_GH_TOKEN }}
run: |
TAG="v${{ github.event.inputs.version }}"
git tag $TAG
Expand Down

0 comments on commit fb0709e

Please sign in to comment.