Fix force pushing to branches after linting

This commit is contained in:
KingRainbow44 2023-05-16 21:19:29 -04:00
parent 38b7c2d0d3
commit 26564b841e
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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