Skip to content

Commit

Permalink
Update loop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WUOTE authored Apr 1, 2024
1 parent 0f44b2e commit 4bf790d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/loop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
https://api.github.com/repos/acidflow-noita/noitamap/actions/variables)
for name in "${PROJECT_NAMES[@]}"; do
cachekey_value=$(jq '.variables[] | select(.name == "${name}_CACHEKEY") | .value' <<< $response)
cachekey_value=$(jq '.variables[] | select(.name == "${name}_CACHEKEY") | .value' <<< "$response")
echo "${name}_CACHEKEY=${cachekey_value}"
done
Expand All @@ -42,8 +42,8 @@ jobs:
--header 'Content-Type: application/json' \
--url "https://api.cloudflare.com/client/v4/accounts/${{ secrets.CF_ACCOUNT_ID }}/pages/projects/${project_name}/deployments")
project_alias=$(jq -r '.result[0].aliases[0]' <<< $response | sed 's#https://##')
modified_on=$(jq -r '.result[0].modified_on' <<< $response | date -u -f - +%s)
project_alias=$(jq -r '.result[0].aliases[0]' <<< "$response" | sed 's#https://##')
modified_on=$(jq -r '.result[0].modified_on' <<< "$response" | date -u -f - +%s)
echo "${var_name}='${project_alias}=${modified_on}'" >> $GITHUB_ENV # Use environment variable to pass dynamic value.
}
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
for name in ${PROJECT_NAMES[@]}; do
update_modified_on "$name"
update_modified_on "$name"
done
Expand Down

0 comments on commit 4bf790d

Please sign in to comment.