Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #153

Merged
merged 2 commits into from
Oct 29, 2024
Merged

Dev #153

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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