diff --git a/.github/workflows/test_action.yaml b/.github/workflows/test_action.yaml index 808cb24..ea92c44 100644 --- a/.github/workflows/test_action.yaml +++ b/.github/workflows/test_action.yaml @@ -10,6 +10,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + fetch-depth: 0 fetch-tags: true - run: | @@ -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 }})' @@ -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 }})'