Skip to content

TestCallingWorkflow

TestCallingWorkflow #1

name: TestCallingWorkflow
run-name: "TestCallingWorkflow"
on:
workflow_dispatch:
env:
ACTIONS_OWNER: asterisk
ACTIONS_REPO: asterisk-ci-actions
ACTIONS_BRANCH: main-test-native
SCRIPT_DIR: ${{ github.workspace }}/asterisk-ci-actions/scripts
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
RUN_ID: ${{ github.id }}
jobs:
Setup:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: DumpEnvironment
uses: asterisk/asterisk-ci-actions/DumpEnvironmentAction@main
with:
save_output: true
TestCalled:
needs: [ Setup ]
strategy:
fail-fast: false
matrix:
jobname: [ 'JobA', 'JobB' ]
uses: ./.github/workflows/TestCalledWorkflow.yml
with:
jobname: ${{ inputs.actions_ref }}
secrets: inherit
Cleanup:
needs: [ TestCalled ]
runs-on: ubuntu-latest
if: ${{ always() }}
defaults:
run:
shell: bash
steps:
- name: test
run: |
gh --repo ${{ github.repository }} \
run download ${RUN_ID} -D run-${RUN_ID}
find run-${RUN_ID} -name STEP_SUMMARY
for f in $(find run-${RUN_ID} -name STEP_SUMMARY) ; do
cat $f >> $GITHUB_STEP_SUMMARY
done
cat $GITHUB_STEP_SUMMARY
- name: DumpEnvironment
uses: asterisk/asterisk-ci-actions/DumpEnvironmentAction@main
with:
save_output: true