mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-29 15:06:10 +00:00
update ci
This commit is contained in:
parent
68a1470447
commit
900c70e36a
6
.github/workflows/linting_annotate.yml
vendored
6
.github/workflows/linting_annotate.yml
vendored
|
@ -18,7 +18,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download linting report
|
- name: Download linting report
|
||||||
uses: actions/github-script@v3.1.0
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
var artifacts = await github.actions.listWorkflowRunArtifacts({
|
var artifacts = await github.actions.listWorkflowRunArtifacts({
|
||||||
|
@ -27,7 +27,7 @@ jobs:
|
||||||
run_id: ${{github.event.workflow_run.id }},
|
run_id: ${{github.event.workflow_run.id }},
|
||||||
});
|
});
|
||||||
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
|
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
|
||||||
return artifact.name == "eslint_report.zip"
|
return artifact.name == "eslint_report.json"
|
||||||
})[0];
|
})[0];
|
||||||
var download = await github.actions.downloadArtifact({
|
var download = await github.actions.downloadArtifact({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
|
@ -43,7 +43,7 @@ jobs:
|
||||||
- run: ls -la
|
- run: ls -la
|
||||||
|
|
||||||
- name: Annotate linting
|
- name: Annotate linting
|
||||||
uses: ataylorme/eslint-annotate-action@v2
|
uses: ataylorme/eslint-annotate-action@v6
|
||||||
with:
|
with:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
report-json: "eslint_report.json"
|
report-json: "eslint_report.json"
|
||||||
|
|
4
.github/workflows/linting_testing.yml
vendored
4
.github/workflows/linting_testing.yml
vendored
|
@ -30,9 +30,9 @@ jobs:
|
||||||
# continue on error, so it still reports it in the next step
|
# continue on error, so it still reports it in the next step
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: eslint_report.zip
|
name: eslint_report.json
|
||||||
path: eslint_report.json
|
path: eslint_report.json
|
||||||
|
|
||||||
building:
|
building:
|
||||||
|
|
Loading…
Reference in a new issue