Skip to content

Create Rulesets

Create Rulesets #6

name: Create Rulesets
on:
workflow_dispatch:
inputs:
team_name:
description: 'Team name to create ruleset for. Leave empty to modify base ruleset.'
required: false
jobs:
create_rulesets:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run script
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
TEAM_NAME: ${{ inputs.team_name }}
run: python create_rulesets.py