This repository has been archived by the owner on Jan 3, 2025. It is now read-only.
Auto Assign Users #5
Workflow file for this run
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: Auto Assign Team to Issues | |
on: | |
issues: | |
types: [opened] | |
workflow_dispatch: | |
jobs: | |
auto-assign-team: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install jq | |
run: sudo apt-get install -y jq | |
- name: Get team members using GitHub API | |
id: team-members | |
run: | | |
response=$(curl -L \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
https://api.github.com/orgs/KittyCAD/teams/support/members) | |
echo "API Response:" | |
echo "$response" # Just print the response for now | |