Skip to content

Commit

Permalink
Merge pull request #145 from bcgov/bugfix/AB#0006-merges
Browse files Browse the repository at this point in the history
test 11.3.14
  • Loading branch information
DarylTodosichuk authored Oct 29, 2024
2 parents b9012ba + 197eecb commit 7ea2c71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,15 @@ jobs:
id: get_branch
run: |
# Get the latest merge commit message
git log -2
LATEST_MERGE_COMMIT=$(git log --merges --pretty=format:"%s" -1)
git log
# Print the latest merge commit message for debugging
echo "Latest merge commit message: $LATEST_MERGE_COMMIT"
# Check if the latest merge commit matches "Merge pull request * from bcgov/*"
if echo "$LATEST_MERGE_COMMIT" | grep -qE 'Merge pull request #[0-9]+ from bcgov/[^ ]+'; then
# Extract the branch name
MERGED_BRANCH=$(echo "$LATEST_MERGE_COMMIT" | grep -oE 'Merge pull request #[0-9]+ from bcgov/[^ ]+' | sed 's/Merge pull request #[0-9]\+ from bcgov\///')
MERGED_BRANCH=$(echo "$LATEST_MERGE_COMMIT" | grep -oE 'from bcgov/[^ ]+' | sed 's/from bcgov\///')
echo "Merged branch: $MERGED_BRANCH"
echo "MERGED_BRANCH=$MERGED_BRANCH" >> $GITHUB_OUTPUT
else
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 11.3.13
test 11.3.14

0 comments on commit 7ea2c71

Please sign in to comment.