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

Commit e19d6d3

Browse files
committed
Set target branch for publishing
1 parent 312934b commit e19d6d3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/publish.yml

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

0 commit comments

Comments
 (0)