mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-23 12:24:43 +01:00
Update GitHub actions
This commit is contained in:
8
.github/workflows/handbook.yml
vendored
8
.github/workflows/handbook.yml
vendored
@@ -22,6 +22,10 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Extract branch name
|
||||
shell: bash
|
||||
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
|
||||
id: extract_branch
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
@@ -45,14 +49,14 @@ 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 checkout ${{ steps.extract_branch.outputs.branch }} && 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 unstable
|
||||
run: git push --set-upstream --force origin ${{ steps.extract_branch.outputs.branch }}
|
||||
|
||||
Build-Handbook:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user