Update latest tagging with custom code that uses a personal access token to trigger workflows

pull/218/head v0.20.0-alpha.11
Chip Senkbeil 10 months ago
parent bd3b068651
commit 9bc50886bb
No known key found for this signature in database
GPG Key ID: 35EF1F8EC72A4131

@ -10,5 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run latest-tag
uses: EndBug/latest-tag@latest
- name: Tag latest and push
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
origin_url="$(git config --get remote.origin.url)"
origin_url="${origin_url/#https:\/\//https:\/\/$GITHUB_TOKEN@}" # add token to URL
git tag latest --force
git push "$origin_url" --tags --force

Loading…
Cancel
Save