-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
51 lines (48 loc) · 1.33 KB
/
action.yml
File metadata and controls
51 lines (48 loc) · 1.33 KB
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
name: 'Auto Update Project Fields on Issue Close'
description: 'This action automatically updates custom fields of items in a GitHub Project when an issue is closed.'
author: "DevOps Visions"
branding:
icon: 'edit'
color: 'blue'
runs:
using: 'composite'
steps:
- name: Install GitHub CLI
shell: bash
run: |
sudo apt-get update
sudo apt-get install gh -y
- name: Ensure action scripts are executable
shell: bash
run: |
chmod +x ${{ github.action_path }}/src/scripts/*.sh
- name: Run entrypoint.sh
shell: bash
run: |
${{ github.action_path }}/src/scripts/entrypoint.sh \
"${{ inputs.org }}" \
"${{ inputs.project_number }}" \
"${{ inputs.owner }}" \
"${{ inputs.repo }}" \
"${{ inputs.issue_number }}" \
"${{ inputs.config_path }}"
inputs:
org:
description: 'The organization login.'
required: true
project_number:
description: 'The project number.'
required: true
owner:
description: 'The repository owner.'
required: true
repo:
description: 'The repository name.'
required: true
issue_number:
description: 'The issue number.'
required: true
config_path:
description: 'Path to the fields-config.json file.'
required: false
default: 'fields-config.json'