Data-Bucket-Kestrel File Download Test #93
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Data-Bucket-Kestrel File Download Test | |
on: | |
schedule: | |
# Run this once per day, towards the end of the day for keeping the most | |
# recent data point most meaningful (hours are interpreted in UTC). | |
- cron: "55 02 * * *" | |
workflow_dispatch: # Allow for running this manually. | |
jobs: | |
test-file-download: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Test fetch | |
run: | | |
code=$(curl --head https://media.githubusercontent.com/media/opencybersecurityalliance/data-bucket-kestrel/main/sqlite/bh22.db | head -n 1 | cut -d ' ' -f2) | |
if [ "$code" == "404" ]; then exit 1; fi |