Skip to content

Commit

Permalink
build: adjust parameters for date
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiStefanie committed Dec 5, 2022
1 parent 3f65c84 commit 476f1ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
with:
azcliversion: 2.37.0
inlineScript: |
modified_since=$(date --utc -d "-2 min" "+%Y-%m-%dT%H:%MZ")
modified_since=$(date -u "+%Y-%m-%dT%H:%MZ" --date='-2 min')
az storage blob delete-batch -s grc --connection-string $(echo "$AZ_ST_CONN_STRING" | base64 -d) --pattern 'queries/*' --if-unmodified-since $modified_since
az storage blob delete-batch -s grc --connection-string $(echo "$AZ_ST_CONN_STRING" | base64 -d) --pattern 'controls/*' --if-unmodified-since $modified_since
- name: Update
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with:
azcliversion: 2.37.0
inlineScript: |
modified_since=$(date --utc -d "-2 min" "+%Y-%m-%dT%H:%MZ")
modified_since=$(date -u "+%Y-%m-%dT%H:%MZ" --date='-2 min')
az storage blob delete-batch -s grc --connection-string $(echo "$AZ_ST_CONN_STRING" | base64 -d) --pattern 'queries/*' --if-unmodified-since $modified_since
az storage blob delete-batch -s grc --connection-string $(echo "$AZ_ST_CONN_STRING" | base64 -d) --pattern 'controls/*' --if-unmodified-since $modified_since
- name: Update
Expand Down

0 comments on commit 476f1ea

Please sign in to comment.