Skip to content

if check

if check #3

Workflow file for this run

name: Check repo existance
on:
push:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check all teachings
run: |
bash -c '
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;
fi
done
'