Skip to content

Commit

Permalink
Re-enable automatic, scheduled Actions workflow
Browse files Browse the repository at this point in the history
It seems BigQuery has started updating the Hacker News dataset again.

Revert "Disable automatic, scheduled Actions workflow"

This reverts commit a2f00ca.
  • Loading branch information
jstrieb committed Jan 13, 2025
1 parent a2f00ca commit 9022b3d
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/generate-bloomfilter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,9 @@ name: Generate Bloom Filters
# Run once every 24 hours because the BigQuery database is updated once every
# 24 hours. Also run when manually triggered.
on:
# Automatic running disabled for now since BigQuery is not working in GitHub
# Actions, and since the BigQuery Hacker News dataset is not up-to-date
# anyway:
#
# - https://issuetracker.google.com/issues/315864442
# - https://issuetracker.google.com/issues/261579123
#
# I'll get around to fixing this someday.
#
# schedule:
schedule:
# This time is based loosely around when the BigQuery data updates
# - cron: "5 16 * * *"
- cron: "5 16 * * *"
workflow_dispatch:


Expand Down Expand Up @@ -50,6 +41,7 @@ jobs:
# it from outputting the annoying welcome message directly into the
# CSV we are attempting to process
bq query \
--project_id=hacker-news-analysis-300719 \
--use_legacy_sql=false \
'SELECT COUNT(*) FROM `bigquery-public-data.hacker_news.full`
WHERE type = "story"'
Expand All @@ -62,6 +54,7 @@ jobs:
run: |
# Note that max_rows must be an unsigned, 32-bit int
bq query \
--project_id=hacker-news-analysis-300719 \
--format csv \
--max_rows 99999999 \
--use_legacy_sql=false \
Expand Down

0 comments on commit 9022b3d

Please sign in to comment.