@@ -556,7 +556,12 @@ jobs:
556
556
appinspect-cli :
557
557
name : AppInspect CLI ${{ matrix.tags }}
558
558
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
560
565
if : ${{ !cancelled() && needs.build.result == 'success' }}
561
566
strategy :
562
567
fail-fast : false
@@ -571,15 +576,22 @@ jobs:
571
576
- " splunk_appinspect"
572
577
- " manual"
573
578
steps :
574
- - name : Run appinspect CLI
575
- uses : ./.github/actions/appinspect-cli
579
+ - uses : jenseng/dynamic-uses@v1
576
580
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) }}
578
584
579
585
appinspect-api :
580
586
name : AppInspect API ${{ matrix.tags }}
581
587
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
583
595
if : |
584
596
!cancelled() &&
585
597
needs.build.result == 'success' &&
@@ -592,28 +604,29 @@ jobs:
592
604
- " self-service"
593
605
- " "
594
606
steps :
595
- - name : Run appinspect API
596
- uses : ./.github/actions/appinspect-api
607
+ - uses : jenseng/dynamic-uses@v1
597
608
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) }}
601
612
602
613
artifact-registry :
603
614
name : Artifact registry
604
615
runs-on : ubuntu-latest
605
616
needs :
606
617
- virustotal
607
618
- meta
619
+ - get-called-ref
608
620
if : ${{ !cancelled() && needs.virustotal.result == 'success' && needs.meta.result == 'success' }}
609
621
permissions :
610
622
contents : read
611
623
packages : write
612
624
steps :
613
- - name : Run artifact registry
614
- uses : ./.github/actions/artifact-registry
625
+ - uses : jenseng/dynamic-uses@v1
615
626
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) }}
617
630
618
631
setup :
619
632
needs :
0 commit comments