forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
24 lines (23 loc) · 965 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This action will try to match git commit author (GITHUB_ACTOR) with Slack user
# and add it to GITHUB_OUTPUT
# Following env variables should be provided.
# Provided by Github:
# GITHUB_ACTOR: commit author
# GITHUB_REPOSITORY: name of the repo we check the commit author, e.g. "airbytehq/airbyte-cloud"
# Required:
# AIRBYTE_TEAM_BOT_SLACK_TOKEN: ${{ secrets.AIRBYTE_TEAM_BOT_SLACK_TOKEN }}
# GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: "Match Github user to Slack user"
description: "Match Github user to Slack by email or full name in Github profile."
outputs:
slack_user_ids:
description: "Comma separated slack user IDs that match to GITHUB_ACTOR (Github username)"
value: ${{ steps.match-github-to-slack-user.outputs.slack_user_ids }}
runs:
using: "composite"
steps:
- name: Match github user to slack user
id: match-github-to-slack-user
run: |
./tools/bin/match_github_user_to_slack
shell: bash