constellation/.github/actions/pick_assignee/action.yml

26 lines
596 B
YAML
Raw Normal View History

2023-10-20 07:38:08 -04:00
name: Pick an assignee
description: "Pick an assignee"
outputs:
assignee:
description: "GitHub login of the assignee"
value: ${{ steps.pick-assignee.outputs.assignee }}
runs:
using: "composite"
steps:
- name: Pick an assignee
id: pick-assignee
shell: bash
run: |
possibleAssignees=(
"elchead"
"malt3"
"3u13r"
"daniel-weisse"
"msanft"
"burgerdev"
)
assignee=${possibleAssignees[$RANDOM % ${#possibleAssignees[@]}]}
echo "assignee=$assignee" | tee -a "$GITHUB_OUTPUT"