forked from reichlab/flusight-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.12 KB
/
rebuild-site.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: "Rebuild Site"
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-site.yaml@main
with:
repos: '${{ needs.setup.outputs.repo }}'
slug: '${{ needs.setup.outputs.slug }}'
email: '${{ needs.setup.outputs.email }}'
secrets:
id: 'none'
key: ${{ secrets.GITHUB_TOKEN }}