Skip to content

Commit

Permalink
old way to set ouput
Browse files Browse the repository at this point in the history
  • Loading branch information
proton committed Nov 27, 2023
1 parent 5526372 commit 1ea319a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@ jobs:
run: |
VERSION=$(grep 'version"' package.json | cut -d '"' -f 4)
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "::set-output name=version::$VERSION"
- name: Check if the tag exists
run: |
if git rev-parse --quiet --verify "refs/tags/${{ steps.extract_version.outputs.version }}" >/dev/null; then
echo "The tag ${{ steps.extract_version.outputs.version }} exists. Workflow will be canceled."
echo "version_exists=true" >> $GITHUB_OUTPUT
echo "::set-output name=version_exists::true"
else
echo "The tag ${{ steps.extract_version.outputs.version }} does not exist."
echo "version_exists=false" >> $GITHUB_OUTPUT
echo "::set-output name=version_exists::false"
fi
- name: Debug
Expand Down

0 comments on commit 1ea319a

Please sign in to comment.