Skip to content

Commit 3814fc7

Browse files
AzureG03github-actions[bot]
authored andcommitted
Chore(fix): condition to set UPDATE environment variable
1 parent 048f059 commit 3814fc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
echo "UPSTREAM_COMMITS=$UPSTREAM_COMMITS" >> $GITHUB_ENV
2828
if [ "$UPSTREAM_COMMITS" -eq "0" ]; then
2929
echo "No new commits in upstream. Exiting."
30-
echo "UPDATE=true" >> $GITHUB_ENV
3130
exit 0
3231
fi
3332
echo "New commits detected: $UPSTREAM_COMMITS"
33+
echo "UPDATE=true" >> $GITHUB_ENV
3434
3535
- name: Save Current Commit
3636
if: env.UPDATE == 'true'

0 commit comments

Comments
 (0)