Update workflow.yml

This commit is contained in:
lowlighter
2021-04-29 09:27:41 +02:00
parent a2dda44d9c
commit aa634f0a20

View File

@@ -15,6 +15,7 @@ jobs:
# Run linter to ensure new code respect coding rules
lint:
name: Lint code
if: false
runs-on: ubuntu-latest
steps:
- name: Checkout repository
@@ -71,10 +72,12 @@ jobs:
format:
name: Format code
runs-on: ubuntu-latest
needs: [ build, analyze ]
# needs: [ build, analyze ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Dprint
run: |
curl -fsSL https://dprint.dev/install.sh | sh
@@ -84,14 +87,17 @@ jobs:
- name: Publish formatted code
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/master'
run: |
git add --update
git push
git checkout ${{ github.ref }}
git status
# git add --update
# git commit -m "Auto-format code"
# git push
# Update plugins and template indexes, along with README.md
update-indexes:
name: Publish rebuilt metrics indexes
runs-on: ubuntu-latest
needs: [ format ]
needs: [ build, analyze, format ]
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name: Checkout repository