From d2429896a5cd10223d7f5e18bec7ad853b7f0064 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 20 Dec 2023 04:30:10 +0100 Subject: [PATCH] test --- .../workflows/reusable-build-test-release.yml | 50 +++++++++++-------- 1 file changed, 30 insertions(+), 20 deletions(-) diff --git a/.github/workflows/reusable-build-test-release.yml b/.github/workflows/reusable-build-test-release.yml index 0053fa85d..f143c68c9 100644 --- a/.github/workflows/reusable-build-test-release.yml +++ b/.github/workflows/reusable-build-test-release.yml @@ -448,22 +448,27 @@ jobs: - get-called-ref if: ${{ !cancelled() && (needs.run-unit-tests-3_7.result == 'success' || needs.run-unit-tests-3_7.result == 'skipped') }} outputs: - buildname: ${{ fromJSON(steps.build.outputs.outputs).buildname }} + buildname: ${{ steps.build.outputs.buildname }} permissions: contents: write packages: read steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + # Very Important: semantic-release won't trigger a tagged + # build if this is not set to false + persist-credentials: false - name: Checkout repository uses: jenseng/dynamic-uses@v1 env: - repository: splunk/addonfactory-workflow-addon-release - ref: ${{ needs.get-called-ref.outputs.ref }} + repositories: splunk/addonfactory-workflow-addon-release@${{ needs.get-called-ref.outputs.ref }} with: - uses: actions/checkout@v3 + uses: vweevers/multi-checkout-action@v1 with: ${{ toJSON(env) }} - name: Run build 3.7 + uses: ./../splunk/addonfactory-workflow-addon-release/.github/actions/build id: build - uses: ./.github/actions/build with: python_version: "3.7" SA_GH_USER_NAME: ${{ secrets.SA_GH_USER_NAME }} @@ -494,27 +499,32 @@ jobs: contents: write packages: read steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + # Very Important: semantic-release won't trigger a tagged + # build if this is not set to false + persist-credentials: false - name: Checkout repository uses: jenseng/dynamic-uses@v1 env: - repository: splunk/addonfactory-workflow-addon-release - ref: ${{ needs.get-called-ref.outputs.ref }} + repositories: splunk/addonfactory-workflow-addon-release@${{ needs.get-called-ref.outputs.ref }} with: - uses: actions/checkout@v3 + uses: vweevers/multi-checkout-action@v1 with: ${{ toJSON(env) }} - name: Run build 3.9 - uses: ./.github/actions/build - with: - python_version: "3.9" - SA_GH_USER_NAME: ${{ secrets.SA_GH_USER_NAME }} - SA_GH_USER_EMAIL: ${{ secrets.SA_GH_USER_EMAIL }} - SA_GPG_PRIVATE_KEY: ${{ secrets.SA_GPG_PRIVATE_KEY }} - SA_GPG_PASSPHRASE: ${{ secrets.SA_GPG_PASSPHRASE }} - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - ucc_modinput_functional: ${{ needs.test-inventory.outputs.ucc_modinput_functional}} - modinput_functional: ${{ needs.test-inventory.outputs.modinput_functional}} + uses: ./../splunk/addonfactory-workflow-addon-release/.github/actions/build + with: + python_version: "3.9" + SA_GH_USER_NAME: ${{ secrets.SA_GH_USER_NAME }} + SA_GH_USER_EMAIL: ${{ secrets.SA_GH_USER_EMAIL }} + SA_GPG_PRIVATE_KEY: ${{ secrets.SA_GPG_PRIVATE_KEY }} + SA_GPG_PASSPHRASE: ${{ secrets.SA_GPG_PASSPHRASE }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + ucc_modinput_functional: ${{ needs.test-inventory.outputs.ucc_modinput_functional}} + modinput_functional: ${{ needs.test-inventory.outputs.modinput_functional}} virustotal: continue-on-error: true