yaml
name: Slack Ops
on:
workflow_dispatch:
inputs:
username:
description: 'Email or Slack username'
required: true
type: string
role:
description: 'Org role (e.g. marketing, eng)'
required: true
type: string
action:
description: 'onboard or offboard'
required: true
type: choice
options:
- onboard
- offboard
jobs:
run-slack-ops:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run CLI command
run: |
pip install -e .
python scripts/slack_ops.py \
--action ${{ inputs.action }} \
--username ${{ inputs.username }} \
--role ${{ inputs.role }}
env:
SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }}