Skip to content

Commit

Permalink
update test-action
Browse files Browse the repository at this point in the history
  • Loading branch information
robzr committed Mar 22, 2024
1 parent 1ba0890 commit 2d37f51
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test_action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- run: |
Expand Down Expand Up @@ -57,11 +58,11 @@ jobs:
name: sver equals (true)
uses: ./
with:
command: sver equals v1.2.3 v1.2.3+build-is-ignored
command: equals v1.2.3 v1.2.3+build-is-ignored

- run: |
# test sver-equals-true
if [ '${{ steps.sver-equals-true }}' != 'true' ] ; then
if [ '${{ steps.sver-equals-true.outputs.output }}' != 'true' ] ; then
echo '::error title=Action returned invalid response::The action' \
'/action.yaml returned an invalid response' \
'(${{ steps.sver-equals-true.outputs.output }})'
Expand All @@ -72,11 +73,11 @@ jobs:
name: sver equals (false)
uses: ./
with:
command: sver equals v1.2.3 v1.2.3-pre.is.not.ignored
command: equals v1.2.3 v1.2.3-pre.is.not.ignored

- run: |
# test sver-equals-false
if [ '${{ steps.sver-equals-true }}' != 'false' ] ; then
if [ '${{ steps.sver-equals-false.outputs.output }}' != 'false' ] ; then
echo '::error title=Action returned invalid response::The action' \
'/action.yaml returned an invalid response' \
'(${{ steps.sver-equals-false.outputs.output }})'
Expand Down

0 comments on commit 2d37f51

Please sign in to comment.