Update workflow.yml
This commit is contained in:
6
.github/workflows/workflow.yml
vendored
6
.github/workflows/workflow.yml
vendored
@@ -15,7 +15,6 @@ 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
|
||||||
@@ -72,7 +71,7 @@ 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
|
||||||
@@ -85,9 +84,8 @@ jobs:
|
|||||||
- name: Format code
|
- name: Format code
|
||||||
run: npm run fmt
|
run: npm run fmt
|
||||||
- name: Publish formatted code
|
- name: Publish formatted code
|
||||||
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/master'
|
if: false #github.event_name == 'pull_request' && github.ref != 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
git checkout ${{ github.ref }}
|
|
||||||
git status
|
git status
|
||||||
# git add --update
|
# git add --update
|
||||||
# git commit -m "Auto-format code"
|
# git commit -m "Auto-format code"
|
||||||
|
|||||||
Reference in New Issue
Block a user