Update workflow

This commit is contained in:
lowlighter
2021-04-29 13:53:58 +02:00
parent 84bf43673e
commit 92090b60b5
3 changed files with 8 additions and 4 deletions

View File

@@ -72,6 +72,7 @@ jobs:
name: Format code
runs-on: ubuntu-latest
needs: [ build, analyze ]
if: github.event_name == 'push' && github.head_ref == 'refs/heads/master'
steps:
- name: Checkout repository
uses: actions/checkout@v2
@@ -81,15 +82,18 @@ jobs:
run: |
curl -fsSL https://dprint.dev/install.sh | sh
echo "$HOME/.dprint/bin" >> $GITHUB_PATH
- name: Checkout master
run: git checkout master
- name: Format code
run: npm run fmt
- name: Publish formatted code
if: false #github.event_name == 'pull_request' && github.ref != 'refs/heads/master'
run: |
set +e
git status
# git add --update
# git commit -m "Auto-format code"
# git push
set -e
# Update plugins and template indexes, along with README.md
update-indexes: