Skip to content

Commit

Permalink
Auto-format in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed Apr 28, 2021
1 parent c01ec66 commit 98221fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
Please:
- Read CONTRIBUTING.md first
- Check you're not duplicating another existing pull request
- Add correct labeling
- Provide a clear and concise description
Note that:
- Your code will be automatically formatted by github-actions
- Head branches are automatically deleted when merged
-->
10 changes: 5 additions & 5 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98221fd

Please sign in to comment.