Skip to content

Commit c9e8d93

Browse files
committed
fixup! ci(sync_branch): update existing PR
1 parent 56f6437 commit c9e8d93

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/sync_branches.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ permissions: {}
1111
env:
1212
SYNC_COMMITTER_EMAIL: [email protected]
1313
SYNC_COMMITTER_NAME: Mixxx Bot
14-
SYNC_COMMITTER: ${SYNC_COMMITTER_NAME} <${SYNC_COMMITTER_EMAIL}>
15-
1614
jobs:
1715
sync-branches:
1816
strategy:
@@ -57,12 +55,12 @@ jobs:
5755
run: |
5856
if git fetch origin "${SYNC_BRANCH}"; then
5957
echo "Branch ${SYNC_BRANCH} already exists, checking if the branch was modified..."
60-
COMMITTER="$(git show --pretty=format:"%cn <%ce>" --no-patch "origin/${SYNC_BRANCH}")"
61-
if [ "${COMMITTER}" = "${SYNC_COMMITTER}" ]; then
58+
echo "branch_exists=true" >> $GITHUB_OUTPUT
59+
COMMITTER_EMAIL="$(git show --pretty=format:"%ce" --no-patch "origin/${SYNC_BRANCH}")"
60+
if [ "${COMMITTER_EMAIL}" = "${SYNC_COMMITTER_EMAIL}" ]; then
6261
echo "Branch ${SYNC_BRANCH} was not modified."
6362
else
6463
echo "Branch ${SYNC_BRANCH} was modified, either delete it or update it yourself."
65-
echo "branch_exists=true" >> $GITHUB_OUTPUT
6664
fi
6765
else
6866
echo "Branch ${SYNC_BRANCH} does not exist yet."

0 commit comments

Comments
 (0)