Was there just a hiccup in the upload artifact name? Check with both … #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Workflow with our Action and Upload Artifact v3 | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
jobs: | |
run-action: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Store Workflow | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "test-workflow" | |
path: ".github/workflows/test-workflow-with-action.yaml" | |
retention-days: 3 | |
- uses: "./" | |
name: "Check artifact exists" | |
id: "check_workflow_exists" | |
with: | |
name: "test-workflow" | |
- uses: "./" | |
name: "Check artifact does not exist" | |
id: "check_non_existing" | |
with: | |
name: "non-existing-artifact" | |
- name: "Echo if artifact exists" | |
run: echo "::notice::Artifact in-deed exists." | |
if: "${{ steps.check_workflow_exists.outputs.exists == 'true' }}" | |
- name: "Echo if artifact does not exist" | |
run: echo "::notice::Artifact in-deed does not exist." | |
if: "${{ steps.check_non_existing.outputs.exists == 'false' }}" |