diff --git a/.github/workflows/stats.yml b/.github/workflows/stats.yml index 99a7165..f5d5cc3 100644 --- a/.github/workflows/stats.yml +++ b/.github/workflows/stats.yml @@ -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: @@ -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/ diff --git a/stats/steampipe/pixi.toml b/stats/steampipe/pixi.toml index f57e569..13348d0 100644 --- a/stats/steampipe/pixi.toml +++ b/stats/steampipe/pixi.toml @@ -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"