-
Notifications
You must be signed in to change notification settings - Fork 103
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
efe0569
commit 5384722
Showing
1 changed file
with
6 additions
and
3 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,11 @@ jobs: | |
chmod 777 profiling_reports | ||
docker cp $container_id:/home/profiling_reports/$report_name profiling_reports | ||
ls -ltr profiling_reports | ||
# calculate sas report end time | ||
current_time=$(date -u '+%Y-%m-%dT%H:%MZ') | ||
end_time=$(date -u -d "$current_time 30 minutes" '+%Y-%m-%dT%H:%MZ' 2>/dev/null || date -u -D '%Y-%m-%dT%H:%MZ' -d "+30 minutes" '+%Y-%m-%dT%H:%MZ') | ||
echo "end_time=$end_time" >> $GITHUB_ENV | ||
- name: Upload SVG to Azure Blob Storage | ||
uses: bacongobbler/[email protected] | ||
|
@@ -98,13 +103,11 @@ jobs: | |
with: | ||
azcliversion: latest | ||
inlineScript: | | ||
current_time=$(date -u '+%Y-%m-%dT%H:%MZ') | ||
end=$(date -u -d "$current_time 30 minutes" '+%Y-%m-%dT%H:%MZ' 2>/dev/null || date -u -D '%Y-%m-%dT%H:%MZ' -d "+30 minutes" '+%Y-%m-%dT%H:%MZ') | ||
sas=$(az storage blob generate-sas \ | ||
--container-name 'profiling' \ | ||
--name $report_name \ | ||
--permissions r \ | ||
--expiry $end \ | ||
--expiry $end_time \ | ||
--output tsv \ | ||
--connection-string ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}) | ||
url=$(az storage blob url \ | ||
|