-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (76 loc) · 3.05 KB
/
Test_Workflows.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Use Reusable Workflow
on:
issues:
types: [edited]
pull_request:
types: [edited]
jobs:
get-project-id:
uses: jarmak-nv/shared-workflows/.github/workflows/project-get-item-id.yaml@project-automation-components
secrets: inherit
permissions:
contents: read
with:
PROJECT_ID: "PVT_kwHOBjnxfs4AEt2h"
ITEM_NODE_ID: "${{ github.event.pull_request.node_id }}"
update-sprint:
uses: jarmak-nv/shared-workflows/.github/workflows/project-get-set-iteration-field.yaml@project-automation-components
needs: get-project-id
with:
PROJECT_ID: "PVT_kwHOBjnxfs4AEt2h"
ITERATION_FIELD_ID: "PVTIF_lAHOBjnxfs4AEt2hzgL0kXY"
ITERATION_FIELD_NAME: "Sprint"
ITEM_PROJECT_ID: "${{ needs.get-project-id.outputs.ITEM_PROJECT_ID }}"
ITEM_NODE_ID: "${{ github.event.pull_request.node_id }}"
UPDATE_ITEM: true
UPDATE_LINKED_ISSUES: true
secrets: inherit
update-status:
uses: jarmak-nv/shared-workflows/.github/workflows/project-get-set-single-select-field.yaml@project-automation-components
needs: get-project-id
with:
PROJECT_ID: "PVT_kwHOBjnxfs4AEt2h"
SINGLE_SELECT_FIELD_ID: "PVTSSF_lAHOBjnxfs4AEt2hzgCt50s"
SINGLE_SELECT_FIELD_NAME: "Status"
SINGLE_SELECT_OPTION_VALUE: "In Progress"
ITEM_PROJECT_ID: "${{ needs.get-project-id.outputs.ITEM_PROJECT_ID }}"
ITEM_NODE_ID: "${{ github.event.pull_request.node_id }}"
UPDATE_ITEM: true
UPDATE_LINKED_ISSUES: true
secrets: inherit
update-text-field:
uses: jarmak-nv/shared-workflows/.github/workflows/project-set-text-date-numeric-field.yaml@project-automation-components
needs: get-project-id
with:
PROJECT_ID: "PVT_kwHOBjnxfs4AEt2h"
FIELD_ID: "PVTF_lAHOBjnxfs4AEt2hzgMj-zY"
FIELD_TYPE: text
SET_VALUE: "Reusable test successful."
ITEM_PROJECT_ID: "${{ needs.get-project-id.outputs.ITEM_PROJECT_ID }}"
ITEM_NODE_ID: "${{ github.event.pull_request.node_id }}"
UPDATE_LINKED_ISSUES: true
secrets: inherit
update-date-field:
uses: jarmak-nv/shared-workflows/.github/workflows/project-set-text-date-numeric-field.yaml@project-automation-components
needs: get-project-id
with:
PROJECT_ID: "PVT_kwHOBjnxfs4AEt2h"
FIELD_ID: "PVTF_lAHOBjnxfs4AEt2hzgMj-0E"
FIELD_TYPE: date
SET_VALUE: "${{ github.event.pull_request.created_at }}"
ITEM_PROJECT_ID: "${{ needs.get-project-id.outputs.ITEM_PROJECT_ID }}"
ITEM_NODE_ID: "${{ github.event.pull_request.node_id }}"
UPDATE_LINKED_ISSUES: true
secrets: inherit
update-number-field:
uses: jarmak-nv/shared-workflows/.github/workflows/project-set-text-date-numeric-field.yaml@project-automation-components
needs: get-project-id
with:
PROJECT_ID: "PVT_kwHOBjnxfs4AEt2h"
FIELD_ID: "PVTF_lAHOBjnxfs4AEt2hzgQ-VVM"
FIELD_TYPE: number
SET_VALUE: 100
ITEM_PROJECT_ID: "${{ needs.get-project-id.outputs.ITEM_PROJECT_ID }}"
ITEM_NODE_ID: "${{ github.event.pull_request.node_id }}"
UPDATE_LINKED_ISSUES: true
secrets: inherit