Skip to content

Merge pull request #14 from softwareforgood/fix-the-major-version-upd… #34

Merge pull request #14 from softwareforgood/fix-the-major-version-upd…

Merge pull request #14 from softwareforgood/fix-the-major-version-upd… #34

Workflow file for this run

name: "CI Test for Github Action"
on:
workflow_dispatch:
push:
jobs:
sets_false_on_missing:
name: Sets false when no artifact for the name exists
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
name: "missing-artifact"
id: "existence-check"
- name: Fail when expected output isn't set
run: |
exit 1
if: ${{ steps.existence-check.outputs.exists != 'false' }}
sets_true_when_there:
name: Sets true when no artifact for the name exists
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/upload-artifact@v4
with:
name: "artifact-that-exists"
path: action.yml
- uses: ./
with:
name: "artifact-that-exists"
id: "existence-check"
- name: Fail when expected output isn't set
run: |
exit 1
if: ${{ steps.existence-check.outputs.exists != 'true' }}