Skip to content

Commit

Permalink
test github error
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelemusiani committed Nov 6, 2024
1 parent 7110276 commit 395c063
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/check_repos.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Check repo existance

on:
schedule:
- cron: '0 0 * * 1'
push


jobs:
Expand All @@ -20,13 +19,13 @@ jobs:
for r in $(jq -r '.[].url' < ./teachings.json); do
if [ $(curl -s -o /dev/null -w "%{http_code}" https://github.com/$GITHUB_REPOSITORY_OWNER/$r) -eq 404 ]; then
echo $r NOT FOUND;
echo "::error::$r NOT FOUND";
OK=false
fi
done
if ! $OK; then
echo "Some repos do not exist"
echo "::error::Some repos do not exist on github but are present on teachings.json"
exit 1
fi
'
Expand Down

0 comments on commit 395c063

Please sign in to comment.