Skip to content

Commit

Permalink
Merge pull request #149 from bcgov/bugfix/AB#0006-merges
Browse files Browse the repository at this point in the history
test 11.7
  • Loading branch information
DarylTodosichuk authored Oct 29, 2024
2 parents 0e1bd26 + 8a53d0b commit 8e854f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/docker-build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,11 @@ jobs:
- name: List merged branch
id: get_branch
run: |
# Get the latest merge commit message
LATEST_MERGE_COMMIT=$(git log --merges --pretty=format:"%s")
git log
git log | grep -oE 'from bcgov/[^ ]+'
# 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 'from bcgov/[^ ]+' | sed 's/from bcgov\///')
echo "Merged branch: $MERGED_BRANCH"
echo "MERGED_BRANCH=$MERGED_BRANCH" >> $GITHUB_OUTPUT
else
echo "Direct push into dev branch"
echo "MERGED_BRANCH=push" >> $GITHUB_OUTPUT
fi
MERGED_BRANCH=$(git log --merges --pretty=format:"%s" -1 | grep -oE 'from bcgov/[^ ]+' | sed 's/from bcgov\///')
git log -1 | grep -oE 'from bcgov/[^ ]+'
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
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.6
test 11.7

0 comments on commit 8e854f1

Please sign in to comment.