Skip to content

Commit b4896b4

Browse files
committed
Wrap lines and automatically unzip artifacts
1 parent 9ad18ab commit b4896b4

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/issue-write.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ jobs:
3232
run-id: ${{ github.event.workflow_run.id }}
3333
artifact-name: workflow-args
3434

35-
- name: Unpack Artifact
36-
if: steps.download-artifact.outputs.artifact-id != ''
37-
run: |
38-
unzip ${{ steps.download-artifact.outputs.filename }}
39-
4035
- name: 'Comment on PR'
4136
if: steps.download-artifact.outputs.artifact-id != ''
4237
uses: actions/github-script@v3

.github/workflows/unprivileged-download-artifact/action.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Unprivileged Download Artifact
2-
description: Download artifacts from another workflow run without using an access token.
2+
description: >-
3+
Download artifacts from another workflow run without using an access token.
34
inputs:
45
run-id:
5-
description: The run-id for the workflow run that you want to download the artifact from. If ommited it will download the most recently created artifact from the repo with the artifact-name.
6+
description: >-
7+
The run-id for the workflow run that you want to download the artifact
8+
from. If ommitted it will download the most recently created artifact
9+
from the repo with the artifact-name.
610
required: false
711
artifact-name:
812
desciption: The name of the artifact to download.
@@ -11,7 +15,9 @@ inputs:
1115

1216
outputs:
1317
filename:
14-
description: "The filename of the downloaded artifact or the empty string if the artifact was not found."
18+
description: >-
19+
The filename of the downloaded artifact or the empty string if the
20+
artifact was not found.
1521
value: ${{ steps.download-artifact.outputs.filename }}
1622
artifact-id:
1723
description: "The id of the artifact being downloaded."
@@ -68,3 +74,8 @@ runs:
6874
run: |
6975
curl -L -o ${{ inputs.artifact-name }}.zip "${{ steps.artifact-url.outputs.url }}"
7076
echo "filename=${{ inputs.artifact-name }}.zip" >> $GITHUB_OUTPUT
77+
78+
- shell: bash
79+
if: steps.download-artifact.outputs.filename != ''
80+
run: |
81+
unzip ${{ steps.download-artifact.outputs.filename }}

0 commit comments

Comments
 (0)