input-duration 2.2.6 → 2.2.9
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.
- package/.github/workflows/getWorkflowIDs.yml +57 -0
- package/.github/workflows/manualTriggersAll.yml +60 -0
- package/.github/workflows/manualTriggersEcho0.yml +60 -0
- package/.github/workflows/npm-publish.yml +35 -0
- package/Competitors/ParliamentLive/downloadJs.js +2324 -0
- package/Competitors/ParliamentLive/morefuncrtions.js +2424 -0
- package/Competitors/ReadMe.md +7 -0
- package/README.md +1 -1
- package/index.js +2 -1
- package/package.json +7 -7
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# manually triggered
|
|
2
|
+
# gets workflows data from Curl endpoint repo
|
|
3
|
+
|
|
4
|
+
name: GetWorkflowIDs
|
|
5
|
+
|
|
6
|
+
# Controls when the action will run. Workflow runs when manually triggered using the UI
|
|
7
|
+
# or API.
|
|
8
|
+
on:
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
# Inputs the workflow accepts.
|
|
11
|
+
inputs:
|
|
12
|
+
name:
|
|
13
|
+
# Friendly description to be shown in the UI instead of 'name'
|
|
14
|
+
description: 'Person to greet'
|
|
15
|
+
# Default value if no value is explicitly provided
|
|
16
|
+
default: 'World'
|
|
17
|
+
# Input has to be provided for the workflow to run
|
|
18
|
+
required: true
|
|
19
|
+
# The data type of the input
|
|
20
|
+
type: string
|
|
21
|
+
|
|
22
|
+
workflow_02:
|
|
23
|
+
description: 'ًWorkflow 2 which will be triggered'
|
|
24
|
+
required: true
|
|
25
|
+
default: 'workflow_02'
|
|
26
|
+
|
|
27
|
+
workflow2_github_account:
|
|
28
|
+
description: 'GitHub Account Owner'
|
|
29
|
+
required: true
|
|
30
|
+
default: ':StephanLuis'
|
|
31
|
+
|
|
32
|
+
workflow2_repo_github:
|
|
33
|
+
description: 'repo-name'
|
|
34
|
+
required: true
|
|
35
|
+
default: ':BrowserStackSelenium'
|
|
36
|
+
|
|
37
|
+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
38
|
+
jobs:
|
|
39
|
+
# This workflow contains a single job called "greet"
|
|
40
|
+
greet:
|
|
41
|
+
# The type of runner that the job will run on
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
|
|
44
|
+
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
45
|
+
steps:
|
|
46
|
+
# Runs a single command using the runners shell
|
|
47
|
+
- name: Send greeting
|
|
48
|
+
run: echo "Hello, I'll get workflow IDs"
|
|
49
|
+
|
|
50
|
+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
51
|
+
- name: Workflow IDs
|
|
52
|
+
run: |
|
|
53
|
+
curl -L \
|
|
54
|
+
-H "Accept: application/vnd.github+json" \
|
|
55
|
+
-u "StephanLuis:${{secrets.PAT_KEY}}" \
|
|
56
|
+
-H "X-GitHub-Api-Version: 2022-11-28" \
|
|
57
|
+
https://api.github.com/repos/StephanLuis/BrowserStackSelenium/actions/workflows
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# manually triggered
|
|
2
|
+
# triggers all repository_dispatch workflows in curl enpoint repo
|
|
3
|
+
|
|
4
|
+
name: ManualTriggerAll
|
|
5
|
+
|
|
6
|
+
# Controls when the action will run. Workflow runs when manually triggered using the UI
|
|
7
|
+
# or API.
|
|
8
|
+
on:
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
# Inputs the workflow accepts.
|
|
11
|
+
inputs:
|
|
12
|
+
name:
|
|
13
|
+
# Friendly description to be shown in the UI instead of 'name'
|
|
14
|
+
description: 'Person to greet'
|
|
15
|
+
# Default value if no value is explicitly provided
|
|
16
|
+
default: 'World'
|
|
17
|
+
# Input has to be provided for the workflow to run
|
|
18
|
+
required: true
|
|
19
|
+
# The data type of the input
|
|
20
|
+
type: string
|
|
21
|
+
|
|
22
|
+
workflow_02:
|
|
23
|
+
description: 'ًWorkflow 2 which will be triggered'
|
|
24
|
+
required: true
|
|
25
|
+
default: 'workflow_02'
|
|
26
|
+
|
|
27
|
+
workflow2_github_account:
|
|
28
|
+
description: 'GitHub Account Owner'
|
|
29
|
+
required: true
|
|
30
|
+
default: ':StephanLuis'
|
|
31
|
+
|
|
32
|
+
workflow2_repo_github:
|
|
33
|
+
description: 'repo-name'
|
|
34
|
+
required: true
|
|
35
|
+
default: ':BrowserStackSelenium'
|
|
36
|
+
|
|
37
|
+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
38
|
+
jobs:
|
|
39
|
+
# This workflow contains a single job called "greet"
|
|
40
|
+
greet:
|
|
41
|
+
# The type of runner that the job will run on
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
|
|
44
|
+
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
45
|
+
steps:
|
|
46
|
+
# Runs a single command using the runners shell
|
|
47
|
+
- name: Send greeting
|
|
48
|
+
run: echo "Hello ${{ inputs.name }}"
|
|
49
|
+
|
|
50
|
+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
51
|
+
- name: Test
|
|
52
|
+
|
|
53
|
+
run: |
|
|
54
|
+
curl -L \
|
|
55
|
+
-X POST \
|
|
56
|
+
-H "Accept: application/vnd.github+json" \
|
|
57
|
+
-u "StephanLuis:${{secrets.PAT_KEY}}" \
|
|
58
|
+
-H "X-GitHub-Api-Version: 2022-11-28" \
|
|
59
|
+
https://api.github.com/repos/StephanLuis/BrowserStackSelenium/dispatches \
|
|
60
|
+
-d '{"event_type":"on-demand-test","client_payload":{"unit":false,"integration":true}}'
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# manually triggered
|
|
2
|
+
# triggers specific workflow in curl enpoint (that workflow needs workflow_disptach)
|
|
3
|
+
|
|
4
|
+
name: ManualTrigger0
|
|
5
|
+
|
|
6
|
+
# Controls when the action will run. Workflow runs when manually triggered using the UI
|
|
7
|
+
# or API.
|
|
8
|
+
on:
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
# Inputs the workflow accepts.
|
|
11
|
+
inputs:
|
|
12
|
+
name:
|
|
13
|
+
# Friendly description to be shown in the UI instead of 'name'
|
|
14
|
+
description: 'Person to greet'
|
|
15
|
+
# Default value if no value is explicitly provided
|
|
16
|
+
default: 'World'
|
|
17
|
+
# Input has to be provided for the workflow to run
|
|
18
|
+
required: true
|
|
19
|
+
# The data type of the input
|
|
20
|
+
type: string
|
|
21
|
+
|
|
22
|
+
workflow_02:
|
|
23
|
+
description: 'ًWorkflow 2 which will be triggered'
|
|
24
|
+
required: true
|
|
25
|
+
default: 'workflow_02'
|
|
26
|
+
|
|
27
|
+
workflow2_github_account:
|
|
28
|
+
description: 'GitHub Account Owner'
|
|
29
|
+
required: true
|
|
30
|
+
default: ':StephanLuis'
|
|
31
|
+
|
|
32
|
+
workflow2_repo_github:
|
|
33
|
+
description: 'repo-name'
|
|
34
|
+
required: true
|
|
35
|
+
default: ':BrowserStackSelenium'
|
|
36
|
+
|
|
37
|
+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
38
|
+
jobs:
|
|
39
|
+
# This workflow contains a single job called "greet"
|
|
40
|
+
greet:
|
|
41
|
+
# The type of runner that the job will run on
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
|
|
44
|
+
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
45
|
+
steps:
|
|
46
|
+
# Runs a single command using the runners shell
|
|
47
|
+
- name: Send greeting
|
|
48
|
+
run: echo "Hello ${{ inputs.name }}"
|
|
49
|
+
|
|
50
|
+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
51
|
+
- name: Test
|
|
52
|
+
|
|
53
|
+
run: |
|
|
54
|
+
curl -L \
|
|
55
|
+
-X POST \
|
|
56
|
+
-H "Accept: application/vnd.github+json" \
|
|
57
|
+
-u "StephanLuis:${{secrets.PAT_KEY}}" \
|
|
58
|
+
-H "X-GitHub-Api-Version: 2022-11-28" \
|
|
59
|
+
https://api.github.com/repos/StephanLuis/BrowserStackSelenium/actions/workflows/78546395/dispatches \
|
|
60
|
+
-d '{"ref":"main"}'
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
3
|
+
|
|
4
|
+
name: Node.js Package from GitHub
|
|
5
|
+
|
|
6
|
+
on: push
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v3
|
|
14
|
+
- uses: actions/setup-node@v3
|
|
15
|
+
with:
|
|
16
|
+
node-version: 16
|
|
17
|
+
- run: npm ci
|
|
18
|
+
- run: npm test
|
|
19
|
+
|
|
20
|
+
publish-npm:
|
|
21
|
+
needs: build
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v3
|
|
25
|
+
- uses: actions/setup-node@v3
|
|
26
|
+
with:
|
|
27
|
+
node-version: 16
|
|
28
|
+
registry-url: https://registry.npmjs.org/
|
|
29
|
+
- run: npm ci
|
|
30
|
+
|
|
31
|
+
- run: npm version patch
|
|
32
|
+
- run: git push
|
|
33
|
+
- run: npm publish
|
|
34
|
+
env:
|
|
35
|
+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|