Update GitHub actions

This commit is contained in:
KingRainbow44
2023-05-31 23:22:54 -04:00
parent e0a2ccf49c
commit 28cb202d2b
5 changed files with 40 additions and 68 deletions

View File

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