Skip to content

Commit

Permalink
test 12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DarylTodosichuk committed Oct 29, 2024
1 parent ffe2d75 commit 9868fec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docker-build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ jobs:
- name: List merged branch
id: get_branch
run: |
MERGED_BRANCH=$(git log --merges --pretty=format:"%s" -1 | grep -oE 'from bcgov/[^ ]+' | sed 's/from bcgov\///')
git log -1
MERGED_BRANCH=$(git log -1 | grep -oE 'from bcgov/[^ ]+' | sed 's/from bcgov\///')
if [ -z "$MERGED_BRANCH" ]; then
echo "Direct push no pull request from bcgov/branch"
echo "Direct push into --env ${{env.TARGET_ENV}}"
echo "MERGED_BRANCH=push" >> $GITHUB_OUTPUT
else
echo "Merged branch: $MERGED_BRANCH"
Expand Down Expand Up @@ -98,9 +99,10 @@ jobs:
echo "${{env.UGM_RELEASE_PREFIX}}$MAJOR_VERSION.$MINOR_VERSION.$VERSION_PATCH"
# Check the merged branch and set versions accordingly
if [[ "${{ needs.Branch.outputs.MERGED_BRANCH }}" == "test" ]]; then
echo "Latest test version tagged as main stable release"
echo "Latest test version tagged as stable release"
TEST_VERSION=$(gh variable get UGM_BUILD_VERSION --env test --json | jq -r '.value')
gh variable set UGM_BUILD_VERSION --env main --body "$TEST_VERSION"
elif [[ "${{ needs.Branch.outputs.MERGED_BRANCH }}" == hotfix/* ]]; then
echo "Incrementing patch version for hotfix version tagged as stable release"
VERSION_PATCH=$((VERSION_PATCH + 1))
Expand Down
2 changes: 1 addition & 1 deletion applications/scripts/datafix-ab#001.sql
Original file line number Diff line number Diff line change
@@ -1 +1 @@
test 12
test 12.1

0 comments on commit 9868fec

Please sign in to comment.