mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Use a separate gh token for master branch promotion so workflows run
This commit is contained in:
10
.github/workflows/promote.yml
vendored
10
.github/workflows/promote.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user