-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathaction.yaml
More file actions
29 lines (27 loc) · 867 Bytes
/
action.yaml
File metadata and controls
29 lines (27 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: "Synchronize teams to GitHub"
description: "Read team membership/permissions from YAML and make changes on GH as necessary"
inputs:
token:
description: "A Github personal authentication token"
required: true
runs:
using: "composite"
steps:
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Validate user IDs
env:
GH_TOKEN: ${{ inputs.token }}
shell: bash
run: >-
python -m pip install pyyaml --quiet;
python ${{ github.action_path }}/validate-user-ids.py
- name: Sync teams
env:
GH_TOKEN: ${{ inputs.token }}
shell: bash
run: >-
python -m pip install pyyaml requests --quiet;
python ${{ github.action_path }}/sync-teams-to-gh.py -o ${{ github.repository_owner }} -m >> $GITHUB_STEP_SUMMARY