-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
54 lines (47 loc) · 1.44 KB
/
action.yaml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: 'release_helper'
description: 'A tool to check related tickets are in a ready state for deployment.'
inputs:
github-token:
description: 'release_helper GitHub token'
required: true
linear-token:
description: 'release_helper Linear token'
required: true
slack-bot-token:
description: 'release_helper Slack bot token'
required: true
slack-channel-name:
description: 'release_helper Slack channel name, include the #'
required: true
enable-deploy:
description: 'release_helper allow deployment'
required: false
runs:
using: 'composite'
steps:
- name: Checkout Code Repository
uses: actions/checkout@v4
with:
repository: noviconnect/release_helper
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Poetry
uses: abatilo/actions-poetry@v3
- name: Run release_helper module
shell: bash
run: |
# running release_helper
poetry install -q
poetry run python src/release_helper/main.py
env:
PYTHONPATH: src
HELPER__GITHUB_TOKEN: ${{ inputs.github-token }}
HELPER__LINEAR__TOKEN: ${{ inputs.linear-token }}
HELPER__SLACK__BOT_TOKEN: ${{ inputs.slack-bot-token }}
HELPER__SLACK__DEPLOY_CHANNEL: ${{ inputs.slack-channel-name }}
HELPER__DEPLOY: ${{ inputs.enable-deploy }}
branding:
color: 'blue'
icon: 'play-circle'