Skip to content

Commit

Permalink
Merge pull request #38 from gnosis/github_actions
Browse files Browse the repository at this point in the history
Use tag pass as input instead of latest
  • Loading branch information
gMonty030 authored Oct 28, 2024
2 parents 039b5fd + 738646e commit 4467901
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/prod_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,16 @@ jobs:
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Check version tag exists
id: release_tag
run: |
TAG_EXISTS=$(git tag -l "${{ inputs.version }}")
if [ -z "$TAG_EXISTS" ]; then
echo "Version ${{ inputs.version }} does not exist."
exit 1
else
echo "tag=$TAG_EXISTS" >> $GITHUB_OUTPUT
fi
- name: Get version Release Tag
id: release_tag
run: echo "tag=$(git describe --abbrev=0 --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_OUTPUT

- name: Setup Node.js
uses: actions/setup-node@v2
with:
Expand Down

0 comments on commit 4467901

Please sign in to comment.