mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 00:12:29 +00:00
Fix force pushing to branches after linting
This commit is contained in:
parent
38b7c2d0d3
commit
26564b841e
2
.github/workflows/check_code.yml
vendored
2
.github/workflows/check_code.yml
vendored
@ -38,7 +38,7 @@ jobs:
|
||||
- run: git config --global user.name "github-actions"
|
||||
- run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
- run: git stash
|
||||
- run: git checkout unstable
|
||||
- run: git checkout unstable && git pull
|
||||
- run: git stash pop || true
|
||||
|
||||
- name: Commit Code Changes
|
||||
|
5
.github/workflows/handbook.yml
vendored
5
.github/workflows/handbook.yml
vendored
@ -44,12 +44,15 @@ jobs:
|
||||
|
||||
- run: git config --global user.name "github-actions"
|
||||
- run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
- run: git stash
|
||||
- run: git checkout unstable && git pull
|
||||
- run: git stash pop || true
|
||||
- name: Commit changes
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
run: git add -u && git commit -m "Lint Code [skip actions]" || true
|
||||
- name: Push changes
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
run: git push --set-upstream --force origin ${{ github.ref }}
|
||||
run: git push --set-upstream --force origin unstable
|
||||
|
||||
Build-Handbook:
|
||||
runs-on: ubuntu-latest
|
||||
|
Loading…
Reference in New Issue
Block a user