Skip to content

Commit

Permalink
ci: output hackathon scores to leaderboard issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
meskill committed Sep 11, 2024
1 parent b2cadd8 commit 17881a8
Show file tree
Hide file tree
Showing 5 changed files with 319 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/generate-baseline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Generate Baseline
on:
workflow_dispatch:

permissions: write-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/update-leaderboard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Collect Hackathon Scores

on:
workflow_dispatch:
schedule:
- cron: '0 * * * *' # every hour at 0 minutes

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
leaderboard:
runs-on: ubuntu-latest

steps:
- name: Install Stable Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Run generator
run: cargo run --bin github-collect-leaderboard
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
180 changes: 178 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ command-group = { version = "5.0.1", features = ["with-tokio"] }
diff_logger = "0.1.0"
easy_retry = { version = "0.1.0", features = ["async"] }
mock_json = "0.1.8"
octocrate = { version = "2.0.1", features = ["issues", "pulls"] }
regex = "1.10.6"
reqwest = { version = "0.12.7", features = ["json"] }
serde = "1.0.210"
Expand Down
Loading

0 comments on commit 17881a8

Please sign in to comment.