Skip to content

Commit

Permalink
Add compatibility with upload-artiact v4
Browse files Browse the repository at this point in the history
Names of artifacts need to be distinct now
  • Loading branch information
jacobtylerwalls committed Dec 24, 2023
1 parent 0a96d8e commit b15d87f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/primer_run_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ jobs:
run: |
. venv/bin/activate
python tests/primer/__main__.py prepare --clone
- name: Upload output diff
- name: Upload commit string
uses: actions/[email protected]
if: matrix.batchIdx == 0
with:
name: primer_commitstring
path:
Expand All @@ -105,7 +106,9 @@ jobs:
- name: Upload output
uses: actions/[email protected]
with:
name: primer_output
name:
primer_output_main_${{ steps.python.outputs.python-version }}_batch${{
matrix.batchIdx }}
path: >-
tests/.pylint_primer_tests/output_${{ steps.python.outputs.python-version
}}_main_batch${{ matrix.batchIdx }}.txt
10 changes: 8 additions & 2 deletions .github/workflows/primer_run_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,18 @@ jobs:
- name: Upload output of PR
uses: actions/[email protected]
with:
name: primer_output_pr
name:
primer_output_pr_${{ steps.python.outputs.python-version }}_batch${{
matrix.batchIdx }}
path:
tests/.pylint_primer_tests/output_${{ steps.python.outputs.python-version
}}_pr_batch${{ matrix.batchIdx }}.txt
- name: Upload output of 'main'
uses: actions/[email protected]
with:
name: primer_output_main
name:
primer_output_main_${{ steps.python.outputs.python-version }}_batch${{
matrix.batchIdx }}
path:
output_${{ steps.python.outputs.python-version }}_main_batch${{
matrix.batchIdx }}.txt
Expand All @@ -191,6 +195,8 @@ jobs:
run: |
echo ${{ github.event.pull_request.number }} | tee pr_number.txt
- name: Upload PR number
if:
startsWith(steps.python.outputs.python-version, '3.8') && matrix.batchIdx == 0
uses: actions/[email protected]
with:
name: pr_number
Expand Down

0 comments on commit b15d87f

Please sign in to comment.