Skip to content

Commit

Permalink
use amend to avoid configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
donno2048 authored Mar 26, 2024
1 parent 06c088a commit 70e64e5
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
name: Update docs and demo
on:
push:
branches-ignore:
- 'dependabot/**'
paths-ignore:
- 'README.md'
- 'demo/snake.zip'
- 'demo/qr.png'
workflow_dispatch:
on: [push, workflow_dispatch]
permissions:
contents: write
pages: write
Expand All @@ -27,12 +19,8 @@ jobs:
xxd -p snake.com | python3 docs/update.py
qrencode -r snake.com -8 -o demo/qr.png
zip demo/snake.zip snake.com
git config --global user.email "$GITHUB_REPOSITORY_OWNER_ID+$GITHUB_REPOSITORY_OWNER@users.noreply.github.com"
git config --global user.name "$GITHUB_REPOSITORY_OWNER"
git add .
git commit -m "${GITHUB_WORKFLOW,,}"
git commit -a --amend --no-edit
git push
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: 'demo/'
Expand Down

0 comments on commit 70e64e5

Please sign in to comment.