Skip to content

Commit

Permalink
added repo fields to workflow_dispatch (paritytech#14)
Browse files Browse the repository at this point in the history
This allows users to define what repository they want to analyze
  • Loading branch information
Bullrich authored Apr 15, 2024
1 parent 8d2f7e0 commit 7084c14
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/deploy-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@ on:
push:
branches: ["main"]
workflow_dispatch:
schedule:
- cron: "0 12 1 * *"
inputs:
org:
description: 'Organization'
type: string
required: false
default: "polkadot-fellows"
repo:
description: 'Repository'
type: string
required: false
default: "runtimes"

permissions:
pages: write
Expand All @@ -17,12 +26,12 @@ jobs:
name: Get repository metrics
steps:
- uses: paritytech/metrics@main
name: Fetch polkadot-fellows/runtimes metrics
name: Fetch metrics
id: metric
with:
GITHUB_TOKEN: ${{ github.token }}
owner: polkadot-fellows
repo: runtimes
owner: ${{ github.event.inputs.org }}
repo: ${{ github.event.inputs.repo }}
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
Expand Down

0 comments on commit 7084c14

Please sign in to comment.