Skip to content

Commit

Permalink
ci: Add slack
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Sep 5, 2024
1 parent f2b85b8 commit 317bb8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
TWITTER_BEARER_TOKEN: ${{secrets.TWITTER_BEARER_TOKEN}}
GITHUB_TOKEN: ${{secrets.STEAMPIPE_GH_TOKEN}}
HF_TOKEN: ${{ secrets.HF_TOKEN }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}

jobs:
update:
Expand All @@ -34,6 +35,8 @@ jobs:
working-directory: ./stats/steampipe/
- run: pixi run twitter_hc
working-directory: ./stats/steampipe/
- run: pixi run slack_hc
working-directory: ./stats/steampipe/
# TODO - run: pixi run slack
- run: pixi run upload_hf
working-directory: ./stats/steampipe/
1 change: 1 addition & 0 deletions stats/steampipe/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ github = "steampipe query github.sql --output json | jq '.rows[0] + {timestamp:
github_hc = { cmd = "curl -fsS -m 10 --retry 5 -o /dev/null https://hc-ping.com/017c8a09-9531-4206-a479-aa51a2209931", depends_on = ["github"] }
slack_active = "steampipe query slack_active_users.sql --output json | jq '.rows[0] + {timestamp: now|tostring}' >> hf_stats/steampipe/slack_active_users.json"
slack_total = "steampipe query slack_total_users.sql --output json | jq '.rows[0] + {timestamp: now|tostring}' >> hf_stats/steampipe/slack_total_users.json"
slack_hc = { cmd = "curl -fsS -m 10 --retry 5 -o /dev/null https://hc-ping.com/af9808d6-6dd7-4e8d-8fc7-c132fc579597", depends_on = ["slack_active", "slack_total"] }
download_hf = "huggingface-cli download nf-core/stats --local-dir hf_stats --repo-type dataset --quiet"
upload_hf = "huggingface-cli upload nf-core/stats hf_stats --repo-type dataset --quiet"

Expand Down

0 comments on commit 317bb8e

Please sign in to comment.