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

test 13 #162

Merged
merged 1 commit into from
Oct 29, 2024
Merged
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
23 changes: 10 additions & 13 deletions .github/workflows/docker-build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,16 @@ 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 stable release"
# TEST_VERSION=$(gh variable get UGM_BUILD_VERSION --env test --json value | jq -r '.value')
# echo $TEST_VERSION
# gh variable set UGM_BUILD_VERSION --env main --body "$TEST_VERSION"
gh variable set UGM_BUILD_VERSION --env dev --body "$MAJOR_VERSION.$MINOR_VERSION.$VERSION_PATCH"
gh variable list --env main
echo "UGM_BUILD_VERSION=$TEST_VERSION " >> $GITHUB_ENV
# Prepare tags
echo "TAGNAME=${{env.UGM_RELEASE_PREFIX}}$TEST_VERSION" >> $GITHUB_OUTPUT
echo "TAGVERSION=$TEST_VERSION" >> $GITHUB_OUTPUT
UGM_TEST_VERSION=$(gh variable get UGM_BUILD_VERSION --env test)
gh variable set UGM_BUILD_VERSION --env main --body "$UGM_TEST_VERSION"
echo "Latest test version tagged as stable release: $UGM_TEST_VERSION"
echo "TAGNAME=${{env.UGM_RELEASE_PREFIX}}$UGM_TEST_VERSION" >> $GITHUB_OUTPUT
echo "TAGVERSION=$UGM_TEST_VERSION" >> $GITHUB_OUTPUT
elif [[ "${{ needs.Branch.outputs.MERGED_BRANCH }}" == hotfix/* ]]; then
echo "Incrementing patch version for hotfix version tagged as stable release"
echo "Incrementing patch version for hotfix release"
VERSION_PATCH=$((VERSION_PATCH + 1))
UGM_HOTFIX_VERSION="$MAJOR_VERSION.$MINOR_VERSION.$VERSION_PATCH"
echo "Hotfix branch tagged as stable release: $UGM_TEST_VERSION"
echo "TAGNAME=${{env.UGM_RELEASE_PREFIX}}$MAJOR_VERSION.$MINOR_VERSION.$VERSION_PATCH" >> $GITHUB_OUTPUT
echo "TAGVERSION=$MAJOR_VERSION.$MINOR_VERSION.$VERSION_PATCH" >> $GITHUB_OUTPUT
fi
Expand All @@ -122,11 +119,11 @@ jobs:
git config user.name "GitHub Actions"
git config user.email "github-actions@users.noreply.github.com"
if [[ "${{ needs.Branch.outputs.MERGED_BRANCH }}" == "test" ]]; then
echo "Test branch tagged as stable release"
echo "Test branch tagged as stable release -m Test to Main - ${{steps.tag_selector.outputs.TAGMSG}}""
git tag -a "${{steps.tag_selector.outputs.TAGNAME}}" -m "Test to Main - ${{steps.tag_selector.outputs.TAGMSG}}"
git push origin "${{steps.tag_selector.outputs.TAGNAME}}"
elif [[ "${{ needs.Branch.outputs.MERGED_BRANCH }}" == hotfix/* ]]; then
echo "Hotfix branch tagged as stable release"
echo "Hotfix branch tagged as stable release -m Hotfix to Main - ${{steps.tag_selector.outputs.TAGMSG}}"
git tag -a "${{steps.tag_selector.outputs.TAGNAME}}" -m "Hotfix to Main - ${{steps.tag_selector.outputs.TAGMSG}}"
git push origin "${{steps.tag_selector.outputs.TAGNAME}}"
fi
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.5
test 13