Use a separate gh token for master branch promotion so workflows run

This commit is contained in:
Caelan Sayler
2024-06-30 20:41:35 +01:00
parent 85242344ea
commit 83dfef5073

View File

@@ -3,9 +3,6 @@ name: Promote Stable Release
on: on:
workflow_dispatch: workflow_dispatch:
permissions:
contents: write
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -13,8 +10,13 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
persist-credentials: false
- name: Fast-forward master branch - name: Fast-forward master branch
run: | run: |
git checkout master git checkout master
git merge develop --ff-only git merge develop --ff-only
git push origin master - name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.MASTER_TOKEN }}
branch: master