File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ permissions: {}
11
11
env :
12
12
SYNC_COMMITTER_EMAIL :
[email protected]
13
13
SYNC_COMMITTER_NAME : Mixxx Bot
14
- SYNC_COMMITTER : ${SYNC_COMMITTER_NAME} <${SYNC_COMMITTER_EMAIL}>
15
-
16
14
jobs :
17
15
sync-branches :
18
16
strategy :
@@ -57,12 +55,12 @@ jobs:
57
55
run : |
58
56
if git fetch origin "${SYNC_BRANCH}"; then
59
57
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
62
61
echo "Branch ${SYNC_BRANCH} was not modified."
63
62
else
64
63
echo "Branch ${SYNC_BRANCH} was modified, either delete it or update it yourself."
65
- echo "branch_exists=true" >> $GITHUB_OUTPUT
66
64
fi
67
65
else
68
66
echo "Branch ${SYNC_BRANCH} does not exist yet."
You can’t perform that action at this time.
0 commit comments