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