Skip to content

Commit

Permalink
add rebuild data workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
elray1 committed Jan 17, 2025
1 parent 60cf7ce commit baa2d46
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/rebuild-data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Rebuild Data"
on:
workflow_dispatch:

permissions:
contents: write

jobs:
setup:
name: "Setup"
runs-on: "ubuntu-latest"
outputs:
repo: ${{ steps.echo.outputs.repo }}
email: ${{ steps.echo.outputs.email }}
slug: ${{ steps.echo.outputs.slug }}
steps:
- id: echo
run: |
name="${{ github.event.repository.name }}"
owner="${{ github.event.repository.owner.login }}"
id="${{ github.event.repository.owner.id }}"
email="[email protected]"
{
echo 'repo<<EOF'
echo [{'"'name'"': '"'$name'"', '"'owner'"': '"'$owner'"'}]
echo EOF
} >> "$GITHUB_OUTPUT"
echo slug=$owner >> "$GITHUB_OUTPUT"
echo email=$email >> "$GITHUB_OUTPUT"
site:
needs: [setup]
uses: hubverse-org/hub-dashboard-control-room/.github/workflows/generate-data.yaml@znk/hub-evals
with:
repos: '${{ needs.setup.outputs.repo }}'
slug: '${{ needs.setup.outputs.slug }}'
email: '${{ needs.setup.outputs.email }}'
secrets:
id: 'none'
key: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit baa2d46

Please sign in to comment.