Update workflow.yml
This commit is contained in:
14
.github/workflows/workflow.yml
vendored
14
.github/workflows/workflow.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user