Skip to content

run

run #1

Workflow file for this run

name: run
on:
push: {}
workflow_dispatch:
inputs:
org_or_user:
description: 'The org (or user) to calculate total lines of code'
required: false
type: string
env:
GITHUB_TOKEN: ${{ secrets.ORG_GITHUB_TOKEN }}
jobs:
run:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.0
- name: script/bootstrap
run: script/bootstrap
- name: count workflow dispatch
if: github.event_name == 'workflow_dispatch'
run: script/count ${{ inputs.org_or_user }}
- name: default count
if: github.event_name != 'workflow_dispatch'
run: script/count balter-test-org