Skip to content

Commit

Permalink
fix: updated script definition
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-deri committed Oct 5, 2023
1 parent 0d8db0d commit ab230b5
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/04_release_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,18 @@ jobs:

- name: Branch or tag selection
id: is_git_tag
run: |
if git tag --list "${{ github.ref_name }}" >/dev/null; then
return 1
else
return 0
fi
uses: actions/github-script@v6.3.3
with:
github-token: ${{ inputs.github_token }}
ref_name: ${{ github.ref_name }}
script: |
let { ref_name } = process.env;
if git tag --list "$ref_name" >/dev/null; then
return 1
else
return 0
fi
result-encoding: boolean

# Set Environment
- if: ${{ github.event.inputs.environment == null || github.event.inputs.environment == 'dev' }}
Expand Down

0 comments on commit ab230b5

Please sign in to comment.