Skip to content

Commit

Permalink
Merge pull request #6055 from chipsalliance/ci-deprecation-fixes
Browse files Browse the repository at this point in the history
Bump gh actions
  • Loading branch information
tgorochowik authored Sep 12, 2024
2 parents 4e69f9c + 5e10955 commit a8cf595
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 48 deletions.
32 changes: 5 additions & 27 deletions .github/workflows/lint-review.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,16 @@
name: lint-review
on:
workflow_run:
workflows: ["trigger-lint"]
types:
- completed
pull_request:

jobs:
lint_review:
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v2
- name: 'Download artifact'
id: get-artifacts
uses: actions/[email protected]
with:
script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{github.event.workflow_run.id }},
});
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "event.json"
})[0];
var download = await github.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
archive_format: 'zip',
});
var fs = require('fs');
fs.writeFileSync('${{github.workspace}}/event.json.zip', Buffer.from(download.data));
- run: |
unzip event.json.zip
- name: Run Verible action
uses: chipsalliance/verible-linter-action@main
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sv-tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
- name: Pack results
run: |
tar -cvf out_${{ matrix.tool.name }}.tar ./out/report/${{ matrix.tool.name }}_report.csv ./out/logs/
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: report_${{ matrix.tool.name }}
path: |
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:
- name: Prepare output directories
run: |
mkdir -p out/report
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
path: ./out/
- name: Extract
Expand Down Expand Up @@ -257,7 +257,7 @@ jobs:
cat $CHANGES_SUMMARY_MD > $GITHUB_STEP_SUMMARY
- name: Upload artifacts for summary
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: github.event_name == 'pull_request'
with:
name: tests_summary
Expand All @@ -276,7 +276,7 @@ jobs:
echo $artifacts
- name: Delete Old Artifacts
if: github.event_name == 'pull_request'
uses: geekyeggo/delete-artifact@v1
uses: geekyeggo/delete-artifact@v5
with:
name: ${{ steps.get-artifacts-to-delete.outputs.artifacts }}
Automerge:
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/trigger-lint.yml

This file was deleted.

0 comments on commit a8cf595

Please sign in to comment.