Skip to content

Commit 9aac0f5

Browse files
authored
Update sync-with-template.yml
1 parent 46541dd commit 9aac0f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/sync-with-template.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ jobs:
4545
echo "::warning::Not enough rate limits!"
4646
if [ "${{github.event_name != 'schedule'}}" == "true" ]; then
4747
echo "::warning::Executing anyway, as event is '${{github.event_name}}'"
48+
echo 'enough=true' >> $GITHUB_OUTPUT
49+
else
50+
echo 'enough=false' >> $GITHUB_OUTPUT
4851
fi
49-
echo 'enough=false' >> $GITHUB_OUTPUT
5052
fi
5153
5254
- name: Sync with template repository
53-
if: ${{env.PUSH_BACK_TOKEN && (github.event_name != 'schedule' || fromJSON(steps.decision.outputs.enough) == true)}}
55+
if: ${{env.PUSH_BACK_TOKEN && fromJSON(steps.decision.outputs.enough) == true}}
5456
uses: remal-github-actions/sync-with-template@v3
5557
with:
5658
githubToken: ${{env.PUSH_BACK_TOKEN}}

0 commit comments

Comments
 (0)