Generate metrics #21
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: Generate metrics | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
inputs: | |
org: | |
description: 'Organization' | |
type: string | |
required: false | |
default: "polkadot-fellows" | |
repo: | |
description: 'Repository' | |
type: string | |
required: false | |
default: "runtimes" | |
permissions: | |
pages: write | |
id-token: write | |
jobs: | |
get_metrics: | |
runs-on: ubuntu-latest | |
name: Get repository metrics | |
steps: | |
- uses: paritytech-stg/metrics@main | |
name: Fetch metrics | |
id: metric | |
with: | |
GITHUB_TOKEN: ${{ github.token }} | |
owner: ${{ github.event.inputs.org }} | |
repo: ${{ github.event.inputs.repo }} | |
- name: Setup Pages | |
uses: actions/[email protected] | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
path: ./ | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/[email protected] |