mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-03 06:32:52 +08: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.name "github-actions"
|
||||||
- run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
- run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
- run: git stash
|
- run: git stash
|
||||||
- run: git checkout unstable
|
- run: git checkout unstable && git pull
|
||||||
- run: git stash pop || true
|
- run: git stash pop || true
|
||||||
|
|
||||||
- name: Commit Code Changes
|
- 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.name "github-actions"
|
||||||
- run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
- 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
|
- name: Commit changes
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
run: git add -u && git commit -m "Lint Code [skip actions]" || true
|
run: git add -u && git commit -m "Lint Code [skip actions]" || true
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
run: git push --set-upstream --force origin ${{ github.ref }}
|
run: git push --set-upstream --force origin unstable
|
||||||
|
|
||||||
Build-Handbook:
|
Build-Handbook:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user