constellation/.github/actions/pick_assignee/action.yml
Paul Meyer dea41bd1ed
ci: refactor e2e test failure notifications (#1625)
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2023-04-12 16:06:26 +02:00

25 lines
580 B
YAML

name: Pick and 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=(
"katexochen"
"malt3"
"3u13r"
"daniel-weisse"
"derpsteb"
)
assignee=${possibleAssignees[$RANDOM % ${#possibleAssignees[@]}]}
echo "assignee=$assignee" | tee -a "$GITHUB_OUTPUT"