Auto-format in workflow
This commit is contained in:
5
.github/pull_request_template.md
vendored
5
.github/pull_request_template.md
vendored
@@ -6,7 +6,10 @@
|
|||||||
Please:
|
Please:
|
||||||
- Read CONTRIBUTING.md first
|
- Read CONTRIBUTING.md first
|
||||||
- Check you're not duplicating another existing pull request
|
- Check you're not duplicating another existing pull request
|
||||||
- Add correct labeling
|
|
||||||
- Provide a clear and concise description
|
- 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
.github/workflows/workflow.yml
vendored
10
.github/workflows/workflow.yml
vendored
@@ -82,16 +82,16 @@ jobs:
|
|||||||
- name: Format code
|
- name: Format code
|
||||||
run: npm run fmt
|
run: npm run fmt
|
||||||
- name: Publish formatted code
|
- name: Publish formatted code
|
||||||
run: git status
|
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/master'
|
||||||
# run: |
|
run: |
|
||||||
# git add --update
|
git add --update
|
||||||
# git push
|
git push
|
||||||
|
|
||||||
# Update plugins and template indexes, along with README.md
|
# Update plugins and template indexes, along with README.md
|
||||||
update-indexes:
|
update-indexes:
|
||||||
name: Publish rebuilt metrics indexes
|
name: Publish rebuilt metrics indexes
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ build, analyze, format ]
|
needs: [ format ]
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
Reference in New Issue
Block a user