Skip to content

Commit

Permalink
feat: initial
Browse files Browse the repository at this point in the history
  • Loading branch information
ovsds committed Jul 19, 2024
1 parent c2e02da commit 40da1af
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ jobs:
repo: push-version-tags-action
name: v1

- name: Validate Results
- name: Assert exists
if: steps.test-run.outputs.exists != 'true'
run: |
exists=${{ steps.test-run.outputs.exists }}
expected="true"
[[ "$exists" == "$expected" ]] || (echo "Output(exists)='$exists', expected: '$expected'."; false)
echo "Output(exists)='${{ steps.test-run.outputs.exists }}', expected: 'true'."; exit 1
e2e-not-exists:
runs-on: ubuntu-20.04
Expand All @@ -48,8 +47,17 @@ jobs:
with:
name: definitely-not-a-tag

- name: Validate Results
- name: Assert exists
if: steps.test-run.outputs.exists != 'false'
run: |
exists=${{ steps.test-run.outputs.exists }}
expected="false"
[[ "$exists" == "$expected" ]] || (echo "Output(exists)='$exists', expected: '$expected'."; false)
echo "Output(exists)='${{ steps.test-run.outputs.exists }}', expected: 'false'."; exit 1
- name: Assert tag_name
if: steps.test-run.outputs.tag_name != ''
run: |
echo "Output(tag_name)='${{ steps.test-run.outputs.tag_name }}', expected: ''."; exit 1
- name: Assert tag_sha
if: steps.test-run.outputs.tag_sha != ''
run: |
echo "Output(tag_sha)='${{ steps.test-run.outputs.tag_sha }}', expected: ''."; exit 1

0 comments on commit 40da1af

Please sign in to comment.