-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d2e851
commit e9b31bd
Showing
2 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |