Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit ced3e0d

Browse files
committed
Set target branch for publishing
1 parent 887722a commit ced3e0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
id: properties
3030
shell: bash
3131
run: |
32+
PROPERTIES="$(./gradlew properties --console=plain -q)"
33+
TARGET="$(echo "$PROPERTIES" | grep "^release_target:" | cut -f2- -d ' ')"
3234
CHANGELOG="$(cat << 'EOM' | sed -e 's/^[[:space:]]*$//g' -e '/./,$!d'
3335
${{ github.event.release.body }}
3436
EOM
@@ -73,5 +75,5 @@ jobs:
7375
gh pr create \
7476
--title "Changelog update - \`$VERSION\`" \
7577
--body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \
76-
--base main \
78+
--base "${{ needs.build.outputs.target }}" \
7779
--head $BRANCH

0 commit comments

Comments
 (0)