File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 push :
1111 branches :
1212 - main
13- paths-ignore :
14- - ' **.md'
1513 pull_request :
16- paths-ignore :
17- - ' **.md'
1814 workflow_dispatch :
1915
2016jobs :
Original file line number Diff line number Diff line change @@ -219,21 +219,29 @@ To take advantage of this immutability for security purposes (to avoid potential
219219jobs:
220220 upload:
221221 runs-on: ubuntu-latest
222+
223+ # Make the artifact ID available to the download job
224+ outputs:
225+ artifact-id: ${{ steps.upload-step.outputs.artifact-id }}
226+
222227 steps:
223228 - name: Create a file
224229 run: echo "hello world" > my-file.txt
225230 - name: Upload Artifact
226- id: upload
231+ id: upload-step
227232 uses: actions/upload-artifact@v4
228233 with:
229234 name: my-artifact
230235 path: my-file.txt
231236 # The upload step outputs the artifact ID
232237 - name: Print Artifact ID
233- run: echo "Artifact ID is ${{ steps.upload.outputs.artifact-id }}"
238+ run: echo "Artifact ID is ${{ steps.upload-step.outputs.artifact-id }}"
239+
234240 download:
235241 needs: upload
242+
236243 runs-on: ubuntu-latest
244+
237245 steps:
238246 - name: Download Artifact by ID
239247 uses: actions/download-artifact@v4
You can’t perform that action at this time.
0 commit comments