@anddone/adminportaltestautomation 1.11.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,10 +2,6 @@ name: Publish AdminPortalTestAutomation
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
workflow_dispatch:
|
|
5
|
-
inputs:
|
|
6
|
-
confirm:
|
|
7
|
-
description: "Type YES to confirm npm publish"
|
|
8
|
-
required: true
|
|
9
5
|
|
|
10
6
|
permissions:
|
|
11
7
|
contents: read
|
|
@@ -28,13 +24,6 @@ jobs:
|
|
|
28
24
|
- name: Install dependencies
|
|
29
25
|
run: npm install
|
|
30
26
|
|
|
31
|
-
- name: Confirm intent
|
|
32
|
-
run: |
|
|
33
|
-
if [ "${{ github.event.inputs.confirm }}" != "YES" ]; then
|
|
34
|
-
echo "Confirmation missing. Type YES to proceed."
|
|
35
|
-
exit 1
|
|
36
|
-
fi
|
|
37
|
-
|
|
38
27
|
# Create approval request (GitHub Issue)
|
|
39
28
|
- name: Create approval issue
|
|
40
29
|
id: approval_issue
|
|
@@ -51,7 +40,13 @@ jobs:
|
|
|
51
40
|
Package: @anddone/adminportaltestautomation
|
|
52
41
|
Run ID: ${context.runId}
|
|
53
42
|
|
|
54
|
-
|
|
43
|
+
Approvers:
|
|
44
|
+
@ad-amolpatil
|
|
45
|
+
@ad-rushabhGunjal
|
|
46
|
+
@ad-siddheshwaranajekar
|
|
47
|
+
@ad-dbharathidasan
|
|
48
|
+
@manjusha-mane
|
|
49
|
+
|
|
55
50
|
Please comment **APPROVE** on this issue to proceed.
|
|
56
51
|
`
|
|
57
52
|
});
|
|
@@ -66,8 +61,16 @@ jobs:
|
|
|
66
61
|
const repo = context.repo.repo;
|
|
67
62
|
const issue_number = Number('${{ steps.approval_issue.outputs.issue_number }}');
|
|
68
63
|
|
|
69
|
-
const APPROVERS = [
|
|
64
|
+
const APPROVERS = [
|
|
65
|
+
'ad-amolpatil',
|
|
66
|
+
'ad-rushabhGunjal',
|
|
67
|
+
'ad-siddheshwaranajekar',
|
|
68
|
+
'ad-dbharathidasan',
|
|
69
|
+
'manjusha-mane'
|
|
70
|
+
];
|
|
71
|
+
|
|
70
72
|
const TIMEOUT_MINUTES = 60;
|
|
73
|
+
const POLL_MS = 30000; // 30 seconds
|
|
71
74
|
const start = Date.now();
|
|
72
75
|
|
|
73
76
|
core.info(`Waiting for approval on issue #${issue_number}...`);
|
|
@@ -95,7 +98,7 @@ jobs:
|
|
|
95
98
|
break;
|
|
96
99
|
}
|
|
97
100
|
|
|
98
|
-
await new Promise(res => setTimeout(res,
|
|
101
|
+
await new Promise(res => setTimeout(res, POLL_MS));
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
# Publish to npm (runs only after approval)
|