Skip to content

Commit 01cc1ed

Browse files
test
1 parent ea3e0c2 commit 01cc1ed

File tree

2 files changed

+34
-13
lines changed

2 files changed

+34
-13
lines changed

.github/workflows/reusable-build-test-release.yml

+26-13
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,12 @@ jobs:
556556
appinspect-cli:
557557
name: AppInspect CLI ${{ matrix.tags }}
558558
runs-on: ubuntu-latest
559-
needs: build
559+
# inputs to `dynamic-uses` step
560+
env:
561+
matrix_tags: ${{ matrix.tags }}
562+
needs:
563+
- build
564+
- get-called-ref
560565
if: ${{ !cancelled() && needs.build.result == 'success' }}
561566
strategy:
562567
fail-fast: false
@@ -571,15 +576,22 @@ jobs:
571576
- "splunk_appinspect"
572577
- "manual"
573578
steps:
574-
- name: Run appinspect CLI
575-
uses: ./.github/actions/appinspect-cli
579+
- uses: jenseng/dynamic-uses@v1
576580
with:
577-
matrix_tags: ${{ matrix.tags }}
581+
uses: splunk/addonfactory-workflow-addon-release/.github/actions/appinspect-cli@${{ needs.get-called-ref.outputs.ref }}
582+
# inputs need to provided as a valid JSON string
583+
with: ${{ toJSON(env) }}
578584

579585
appinspect-api:
580586
name: AppInspect API ${{ matrix.tags }}
581587
runs-on: ubuntu-latest
582-
needs: build
588+
env:
589+
matrix_tags: ${{ matrix.tags }}
590+
SPL_COM_USER: ${{ secrets.SPL_COM_USER }}
591+
SPL_COM_PASSWORD: ${{ secrets.SPL_COM_PASSWORD }}
592+
needs:
593+
- build
594+
- get-called-ref
583595
if: |
584596
!cancelled() &&
585597
needs.build.result == 'success' &&
@@ -592,28 +604,29 @@ jobs:
592604
- "self-service"
593605
- ""
594606
steps:
595-
- name: Run appinspect API
596-
uses: ./.github/actions/appinspect-api
607+
- uses: jenseng/dynamic-uses@v1
597608
with:
598-
matrix_tags: ${{ matrix.tags }}
599-
SPL_COM_USER: ${{ secrets.SPL_COM_USER }}
600-
SPL_COM_PASSWORD: ${{ secrets.SPL_COM_PASSWORD }}
609+
uses: splunk/addonfactory-workflow-addon-release/.github/actions/appinspect-api@${{ needs.get-called-ref.outputs.ref }}
610+
# inputs need to provided as a valid JSON string
611+
with: ${{ toJSON(env) }}
601612

602613
artifact-registry:
603614
name: Artifact registry
604615
runs-on: ubuntu-latest
605616
needs:
606617
- virustotal
607618
- meta
619+
- get-called-ref
608620
if: ${{ !cancelled() && needs.virustotal.result == 'success' && needs.meta.result == 'success' }}
609621
permissions:
610622
contents: read
611623
packages: write
612624
steps:
613-
- name: Run artifact registry
614-
uses: ./.github/actions/artifact-registry
625+
- uses: jenseng/dynamic-uses@v1
615626
with:
616-
sc4s: ${{ needs.meta.outputs.sc4s }}
627+
uses: splunk/addonfactory-workflow-addon-release/.github/actions/artifact-registry@${{ needs.get-called-ref.outputs.ref }}
628+
# inputs need to provided as a valid JSON string
629+
with: ${{ toJSON(env) }}
617630

618631
setup:
619632
needs:

.github/workflows/reusable-lightweight.yml

+8
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,14 @@ jobs:
296296
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
297297
ucc_modinput_functional: ${{ needs.test-inventory.outputs.ucc_modinput_functional}}
298298
modinput_functional: ${{ needs.test-inventory.outputs.modinput_functional}}
299+
- name: Checkout repository
300+
uses: jenseng/dynamic-uses@v1
301+
env:
302+
repository: splunk/addonfactory-workflow-addon-release
303+
ref: ${{ needs.get-called-ref.outputs.ref }}
304+
with:
305+
uses: actions/checkout@v3
306+
with: ${{ toJSON(env) }}
299307

300308
virustotal:
301309
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)