Skip to content

Commit

Permalink
Testing a new change.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahH99 committed Nov 25, 2024
1 parent ab21e3a commit 6d809b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ jobs:
- name: Extract version from tag
id: get-version
run: |
VERSION=${GITHUB_REF##*/}
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
VERSION=${GITHUB_REF##*/}
else
echo "This workflow requires a valid tag (e.g., v0.1.0) to run."
exit 1
fi
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Build Docker image
Expand Down

0 comments on commit 6d809b2

Please sign in to comment.