UNDO THIS - limit experiment #16
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/configure-pages@v5.0.0 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3.0.1 | |
with: | |
path: ./ | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4.0.5 |