Skip to content

Commit

Permalink
Skip version update if not dev or release versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bczoma committed Mar 22, 2024
1 parent 21e8856 commit 146a196
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/module-test-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ jobs:
- name: Ensure version reflects release candidate version
run: |
VERSION=$(echo "${GITHUB_REF_NAME}" | cut -d'v' -f2)
echo $VERSION > VERSION
# only if ${GITHUB_REF_NAME} starts with 'v' or 'dev' and followed by a semver
if [[ $GITHUB_REF_NAME =~ ^(v|dev)[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then
VERSION=$(echo "${GITHUB_REF_NAME}" | cut -d'v' -f2)
echo $VERSION > VERSION
fi
- name: Check changed files
uses: tj-actions/verify-changed-files@v17
Expand Down

0 comments on commit 146a196

Please sign in to comment.