Skip to content

Commit 2cf5f42

Browse files
committed
test default vals
1 parent 626ca16 commit 2cf5f42

File tree

1 file changed

+10
-58
lines changed

1 file changed

+10
-58
lines changed

.github/workflows/TestWorkflow.yml

Lines changed: 10 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ name: TestWorkflow
22
run-name: "TestWorkflow"
33
on:
44
workflow_dispatch:
5+
inputs:
6+
branches:
7+
description: "JSON array of branches: ['18','20'] (no spaces) or leave blank for all current branches."
8+
required: false
9+
type: string
10+
schedule:
11+
# Times are UTC
12+
- cron: '5,10,15,20,25,30,35,40,45 * * * *'
513

614
env:
715
ACTIONS_OWNER: asterisk
@@ -10,6 +18,7 @@ env:
1018
SCRIPT_DIR: ${{ github.workspace }}/asterisk-ci-actions/scripts
1119
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
1220
RUN_ID: ${{ github.id }}
21+
WIKIDOC_BRANCHES: ${{ inputs.branches || vars.WIKIDOC_BRANCHES }}
1322

1423
jobs:
1524
Job1:
@@ -23,61 +32,4 @@ jobs:
2332

2433
- name: test
2534
run: |
26-
mkdir logs
27-
step_summary=""
28-
step_summary+="FAILURE: rest_api/recording/duration\nFAILURE: rest_api/recording/nominal"
29-
echo -e "$step_summary" >> logs/STEP_SUMMARY
30-
exit 1
31-
- name: Save Output
32-
id: save-output
33-
if: ${{ always() }}
34-
uses: actions/upload-artifact@v4
35-
with:
36-
name: job1
37-
path: |
38-
logs
39-
40-
41-
Job2:
42-
runs-on: ubuntu-latest
43-
defaults:
44-
run:
45-
shell: bash
46-
steps:
47-
- name: test
48-
run: |
49-
mkdir logs
50-
step_summary=""
51-
step_summary+="FAILURE: rest_api/recording/XXXXX\nFAILURE: rest_api/recording/YYYYYYY"
52-
echo -e "$step_summary" >> logs/STEP_SUMMARY
53-
exit 1
54-
- name: Save Output
55-
id: save-output
56-
if: ${{ always() }}
57-
uses: actions/upload-artifact@v4
58-
with:
59-
name: job2
60-
path: |
61-
logs
62-
63-
Cleanup:
64-
needs: [Job1, Job2]
65-
runs-on: ubuntu-latest
66-
if: ${{ always() }}
67-
defaults:
68-
run:
69-
shell: bash
70-
steps:
71-
- name: test
72-
run: |
73-
gh --repo ${{ github.repository }} \
74-
run download ${RUN_ID} -D run-${RUN_ID}
75-
find run-${RUN_ID} -name STEP_SUMMARY
76-
for f in $(find run-${RUN_ID} -name STEP_SUMMARY) ; do
77-
cat $f >> $GITHUB_STEP_SUMMARY
78-
done
79-
cat $GITHUB_STEP_SUMMARY
80-
81-
82-
# - name: DumpEnvironment
83-
# uses: asterisk/asterisk-ci-actions/DumpEnvironmentAction@main
35+
echo "BRANCHES: ${WIKIDOC_BRANCHES}"

0 commit comments

Comments
 (0)