ci: revert push scripts

This commit is contained in:
oxalica 2022-08-01 11:05:46 +08:00
parent cc3c93a28d
commit 6f312b3010
2 changed files with 13 additions and 4 deletions

View File

@ -15,6 +15,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3.0.2
with:
persist-credentials: false
ref: master
- name: Install Nix
@ -66,5 +67,7 @@ jobs:
- name: Push changes
if: steps.commit.outcome == 'success'
run: |
git push master:master
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master

View File

@ -19,10 +19,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v3.0.2
with:
persist-credentials: false
fetch-depth: 0
- name: Update stable -> master
- name: Forward stable -> master
run: |
git checkout stable
git merge --ff-only master
git push stable:stable
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: stable