Skip to content

Commit

Permalink
fix manual sync?
Browse files Browse the repository at this point in the history
  • Loading branch information
CBCicada committed Mar 14, 2024
1 parent 867c21e commit 7be1278
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ctfdsync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
- name: sync updated chals to ctfd
run: |
shopt -s globstar
cd $GITHUB_WORKSPACE/../chals
echo "changed files: $(git diff --name-only ${{ github.event.before }} ${{ github.sha }})"
for i in ./**/challenge.yml; do
CHAL_DIR=$(dirname $i)
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ctfdsyncall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@ jobs:
- name: sync chals to ctfd
run: |
shopt -s globstar
cd $GITHUB_WORKSPACE/../chals
for i in ./**/challenge.yml; do
CHAL_DIR=$(dirname $i)
echo "SYNCING CHAL TO CTFd: $CHAL_DIR"
ctf challenge sync $CHAL_DIR
if [ $? == 1 ]; then
echo "::warning::Error syncing chal $CHAL_DIR"
ctf challenge install $CHAL_DIR
fi
ctf challenge install $CHAL_DIR
done
shell: bash --noprofile --norc {0}

0 comments on commit 7be1278

Please sign in to comment.