Skip to content

Commit

Permalink
Fix Report container URL
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAxthelm committed Oct 8, 2024
1 parent 8d2e851 commit e9b31bd
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-push-private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
43 changes: 43 additions & 0 deletions foo
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e9b31bd

Please sign in to comment.