diff --git a/.github/workflows/build-push-private.yml b/.github/workflows/build-push-private.yml index e4b166f7..78c8898e 100644 --- a/.github/workflows/build-push-private.yml +++ b/.github/workflows/build-push-private.yml @@ -481,7 +481,7 @@ jobs: uses: RMI-PACTA/actions/actions/azure/blob-copy@blob-copy-python with: source: ${{ env.TEST_DIR_PARENT }}/${{ matrix.language }}/${{ matrix.peer_group }}/${{ github.run_attempt }}/working_dir/50_Outputs - destination: https://pactadatadev.blob.core.windows.net/ghactions-workflow-transition-monitor-results-full/${{ env.TEST_DIR_PARENT }}/${{ matrix.language }}/${{ matrix.peer_group }}/${{ github.run_attempt }}/working_dir/50_Outputs + destination: https://pactadatadev.blob.core.windows.net/ghactions-workflow-transition-monitor-results-reports/${{ env.TEST_DIR_PARENT }}/${{ matrix.language }}/${{ matrix.peer_group }}/${{ github.run_attempt }}/working_dir/50_Outputs overwrite: false - name: Export Outputs diff --git a/foo b/foo new file mode 100644 index 00000000..3389d1f4 --- /dev/null +++ b/foo @@ -0,0 +1,43 @@ +on: + workflow_call: + +jobs: + test-upload: + permissions: + contents: read + id-token: write + runs-on: ubuntu-latest + steps: + + - name: Prepare Test files + run: | + mkdir test_dir + echo "foo" > test_dir/test.txt + echo "bar" > test_dir/test2.txt + + # https://github.com/Azure/login?tab=readme-ov-file#login-with-openid-connect-oidc-recommended + - name: Azure Login + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + + - name: Upload results to blob store using az + id: upload-directory + uses: RMI-PACTA/actions/actions/azure/blob-copy@blob-copy-python + with: + source: 'test_dir/' + destination: https://pactadatadev.blob.core.windows.net/testing-files/alpha/path/to/file + overwrite: true + + - name: Download results from blob store using az + id: download-directory + uses: RMI-PACTA/actions/actions/azure/blob-copy@blob-copy-python + with: + destination: 'foo/' + source: https://pactadatadev.blob.core.windows.net/testing-files/alpha/ + + - name: show files + run: | + ls -laR foo