Stats #191
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: Stats | |
on: | |
schedule: # every day at 2am and 2pm | |
- cron: "0 2,14 * * *" | |
pull_request: | |
paths: | |
- "stats/steampipe/**" | |
workflow_dispatch: | |
repository_dispatch: | |
types: [update-website] | |
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: | |
name: Update | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659 # v0.8.1 | |
with: | |
cache: true | |
manifest-path: "stats/steampipe/pixi.toml" | |
- run: pixi run download_hf | |
working-directory: ./stats/steampipe/ | |
- run: pixi run plugins | |
working-directory: ./stats/steampipe/ | |
# FIXME Throw error if failure to connect | |
- run: pixi run github_hc | |
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/ |