-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
43 lines (39 loc) · 1.22 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: "Issuer"
description: "A GitHub action that automatically generates issue numbers for user stories."
inputs:
GITHUB_TOKEN:
description: "GitHub token"
required: true
ISSUE_PREFIX:
description: "Prefix for issue numbers"
required: true
ISSUE_COUNTER_VAR:
description: "Name of the counter value org variable"
required: true
ORG_NAME:
description: "Name of the organisation"
required: true
runs:
using: "composite"
steps:
- name: Checkout this repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
shell: bash
run: |
python -m pip install requests
- name: Assign issue number
shell: bash
run: python ${{ github.action_path }}/main.py
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
ISSUE_PREFIX: ${{ inputs.ISSUE_PREFIX }}
ISSUE_COUNTER_VAR: ${{ inputs.ISSUE_counter_VAR }}
ORG_NAME: ${{ inputs.ORG_NAME }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_EVENT_ISSUE_NUMBER: ${{ github.event.issue.number }}
GITHUB_EVENT_ISSUE_TITLE: ${{ github.event.issue.title }}