Skip to content

Commit 164f991

Browse files
committed
Fix duplicate if statement error
1 parent 3c4f1d3 commit 164f991

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/validate-and-process.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,11 @@ jobs:
250250
"
251251
252252
- name: Create or update challenge (GitHub-hosted)
253-
if: success() && needs.validate-host-config.outputs.requires_self_hosted != 'true'
253+
if: github.event_name == 'push' && success() && needs.validate-host-config.outputs.requires_self_hosted != 'true'
254254
run: |
255255
echo "🚀 CREATING/UPDATING CHALLENGE"
256256
echo "=============================="
257257
python3 github/challenge_processing_script.py ${GITHUB_REF#refs/heads/}
258-
if: ${{ github.event_name == 'push' && success() }}
259258
env:
260259
IS_VALIDATION: 'False'
261260
GITHUB_CONTEXT: ${{ toJson(github) }}

0 commit comments

Comments
 (0)