Auto-format in workflow
This commit is contained in:
10
.github/workflows/workflow.yml
vendored
10
.github/workflows/workflow.yml
vendored
@@ -82,16 +82,16 @@ jobs:
|
||||
- name: Format code
|
||||
run: npm run fmt
|
||||
- name: Publish formatted code
|
||||
run: git status
|
||||
# run: |
|
||||
# git add --update
|
||||
# git push
|
||||
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/master'
|
||||
run: |
|
||||
git add --update
|
||||
git push
|
||||
|
||||
# Update plugins and template indexes, along with README.md
|
||||
update-indexes:
|
||||
name: Publish rebuilt metrics indexes
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ build, analyze, format ]
|
||||
needs: [ format ]
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
||||
Reference in New Issue
Block a user