Skip to content

Commit

Permalink
Fix missing newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
WUOTE authored Mar 30, 2024
1 parent 0dd10df commit 21c99c5
Showing 1 changed file with 66 additions and 16 deletions.
82 changes: 66 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update maps cacheKeys in index html
name: +Updating maps cacheKeys

on:
# schedule:
Expand All @@ -8,7 +8,7 @@ on:
jobs:
getRepoCacheVars:
runs-on: ubuntu-latest

steps:
- name: Print all var names before change
run: |
Expand All @@ -26,7 +26,8 @@ jobs:
echo "REGULAR_MIDDLE_CACHEKEY is ${{ vars.REGULAR_MIDDLE_CACHEKEY }}"
echo "REGULAR_RIGHT_PW_CACHEKEY is ${{ vars.REGULAR_RIGHT_PW_CACHEKEY }}"
- name: ALTERNATE_BIOMES_CACHEKEY
run: echo "current ALTERNATE_BIOMES_CACHEKEY = ${{ vars.ALTERNATE_BIOMES_CACHEKEY }}"
run: echo "current ALTERNATE_BIOMES_CACHEKEY = ${{ env.ALTERNATE_BIOMES_CACHEKEY }}"

- name: Get CF deployment for ALTERNATE_BIOMES_CACHEKEY
id: get_cf_deployments_ALTERNATE_BIOMES
run: |
Expand All @@ -37,12 +38,14 @@ jobs:
echo "response_out: $response"
echo "=========="
echo "response_out=$(echo $response| tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Get modified_on for ALTERNATE_BIOMES_CACHEKEY
id: get_modified_on_ALTERNATE_BIOMES
run: |
modified_on=$(jq -r '.result[0].modified_on' <<< '${{ steps.get_cf_deployments_ALTERNATE_BIOMES.outputs.response_out }}' | date -u -f - +%s)
echo "modified_on is $modified_on"
echo "modified_on=${modified_on}" >> $GITHUB_OUTPUT
- name: Github Cachekey Update for ALTERNATE_BIOMES_CACHEKEY
id: gh_cachekey_update_ALTERNATE_BIOMES
run: |
Expand All @@ -54,8 +57,10 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/acidflow-noita/noitamap/actions/variables/${PROJECT_CACHEKEY_VAR}\
-d "{\"name\":\"${PROJECT_CACHEKEY_VAR}\",\"value\":\"${{ steps.get_modified_on_ALTERNATE_BIOMES.outputs.modified_on }}\"}"
- name: APOTHEOSIS_CACHEKEY
run: echo "current APOTHEOSIS_CACHEKEY = ${{ vars.APOTHEOSIS_CACHEKEY }}"
run: echo "current APOTHEOSIS_CACHEKEY = ${{ env.APOTHEOSIS_CACHEKEY }}"

- name: Get CF deployment for APOTHEOSIS_CACHEKEY
id: get_cf_deployments_APOTHEOSIS
run: |
Expand All @@ -66,12 +71,14 @@ jobs:
echo "response_out: $response"
echo "=========="
echo "response_out=$(echo $response| tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Get modified_on for APOTHEOSIS_CACHEKEY
id: get_modified_on_APOTHEOSIS
run: |
modified_on=$(jq -r '.result[0].modified_on' <<< '${{ steps.get_cf_deployments_APOTHEOSIS.outputs.response_out }}' | date -u -f - +%s)
echo "modified_on is $modified_on"
echo "modified_on=${modified_on}" >> $GITHUB_OUTPUT
- name: Github Cachekey Update for APOTHEOSIS_CACHEKEY
id: gh_cachekey_update_APOTHEOSIS
run: |
Expand All @@ -84,7 +91,8 @@ jobs:
https://api.github.com/repos/acidflow-noita/noitamap/actions/variables/${PROJECT_CACHEKEY_VAR}\
-d "{\"name\":\"${PROJECT_CACHEKEY_VAR}\",\"value\":\"${{ steps.get_modified_on_APOTHEOSIS.outputs.modified_on }}\"}"
- name: APOTHEOSIS_NEW_GAME_PLUS_CACHEKEY
run: echo "current APOTHEOSIS_NEW_GAME_PLUS_CACHEKEY = ${{ vars.APOTHEOSIS_NEW_GAME_PLUS_CACHEKEY }}"
run: echo "current APOTHEOSIS_NEW_GAME_PLUS_CACHEKEY = ${{ env.APOTHEOSIS_NEW_GAME_PLUS_CACHEKEY }}"

- name: Get CF deployment for APOTHEOSIS_NEW_GAME_PLUS_CACHEKEY
id: get_cf_deployments_APOTHEOSIS_NEW_GAME_PLUS
run: |
Expand All @@ -95,12 +103,14 @@ jobs:
echo "response_out: $response"
echo "=========="
echo "response_out=$(echo $response| tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Get modified_on for APOTHEOSIS_NEW_GAME_PLUS_CACHEKEY
id: get_modified_on_APOTHEOSIS_NEW_GAME_PLUS
run: |
modified_on=$(jq -r '.result[0].modified_on' <<< '${{ steps.get_cf_deployments_APOTHEOSIS_NEW_GAME_PLUS.outputs.response_out }}' | date -u -f - +%s)
echo "modified_on is $modified_on"
echo "modified_on=${modified_on}" >> $GITHUB_OUTPUT
- name: Github Cachekey Update for APOTHEOSIS_NEW_GAME_PLUS_CACHEKEY
id: gh_cachekey_update_APOTHEOSIS_NEW_GAME_PLUS
run: |
Expand All @@ -112,8 +122,10 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/acidflow-noita/noitamap/actions/variables/${PROJECT_CACHEKEY_VAR}\
-d "{\"name\":\"${PROJECT_CACHEKEY_VAR}\",\"value\":\"${{ steps.get_modified_on_APOTHEOSIS_NEW_GAME_PLUS.outputs.modified_on }}\"}"
- name: APOTHEOSIS_TUONELA_CACHEKEY
run: echo "current APOTHEOSIS_TUONELA_CACHEKEY = ${{ vars.APOTHEOSIS_TUONELA_CACHEKEY }}"
run: echo "current APOTHEOSIS_TUONELA_CACHEKEY = ${{ env.APOTHEOSIS_TUONELA_CACHEKEY }}"

- name: Get CF deployment for APOTHEOSIS_TUONELA_CACHEKEY
id: get_cf_deployments_APOTHEOSIS_TUONELA
run: |
Expand All @@ -124,12 +136,14 @@ jobs:
echo "response_out: $response"
echo "=========="
echo "response_out=$(echo $response| tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Get modified_on for APOTHEOSIS_TUONELA_CACHEKEY
id: get_modified_on_APOTHEOSIS_TUONELA
run: |
modified_on=$(jq -r '.result[0].modified_on' <<< '${{ steps.get_cf_deployments_APOTHEOSIS_TUONELA.outputs.response_out }}' | date -u -f - +%s)
echo "modified_on is $modified_on"
echo "modified_on=${modified_on}" >> $GITHUB_OUTPUT
- name: Github Cachekey Update for APOTHEOSIS_TUONELA_CACHEKEY
id: gh_cachekey_update_APOTHEOSIS_TUONELA
run: |
Expand All @@ -141,8 +155,10 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/acidflow-noita/noitamap/actions/variables/${PROJECT_CACHEKEY_VAR}\
-d "{\"name\":\"${PROJECT_CACHEKEY_VAR}\",\"value\":\"${{ steps.get_modified_on_APOTHEOSIS_TUONELA.outputs.modified_on }}\"}"
- name: NEW_GAME_PLUS_HD_CACHEKEY
run: echo "current NEW_GAME_PLUS_HD_CACHEKEY = ${{ vars.NEW_GAME_PLUS_HD_CACHEKEY }}"
run: echo "current NEW_GAME_PLUS_HD_CACHEKEY = ${{ env.NEW_GAME_PLUS_HD_CACHEKEY }}"

- name: Get CF deployment for NEW_GAME_PLUS_HD_CACHEKEY
id: get_cf_deployments_NEW_GAME_PLUS_HD
run: |
Expand All @@ -153,12 +169,14 @@ jobs:
echo "response_out: $response"
echo "=========="
echo "response_out=$(echo $response| tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Get modified_on for NEW_GAME_PLUS_HD_CACHEKEY
id: get_modified_on_NEW_GAME_PLUS_HD
run: |
modified_on=$(jq -r '.result[0].modified_on' <<< '${{ steps.get_cf_deployments_NEW_GAME_PLUS_HD.outputs.response_out }}' | date -u -f - +%s)
echo "modified_on is $modified_on"
echo "modified_on=${modified_on}" >> $GITHUB_OUTPUT
- name: Github Cachekey Update for NEW_GAME_PLUS_HD_CACHEKEY
id: gh_cachekey_update_NEW_GAME_PLUS_HD
run: |
Expand All @@ -170,8 +188,10 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/acidflow-noita/noitamap/actions/variables/${PROJECT_CACHEKEY_VAR}\
-d "{\"name\":\"${PROJECT_CACHEKEY_VAR}\",\"value\":\"${{ steps.get_modified_on_NEW_GAME_PLUS_HD.outputs.modified_on }}\"}"
- name: NIGHTMARE_HD_CACHEKEY
run: echo "current NIGHTMARE_HD_CACHEKEY = ${{ vars.NIGHTMARE_HD_CACHEKEY }}"
run: echo "current NIGHTMARE_HD_CACHEKEY = ${{ env.NIGHTMARE_HD_CACHEKEY }}"

- name: Get CF deployment for NIGHTMARE_HD_CACHEKEY
id: get_cf_deployments_NIGHTMARE_HD
run: |
Expand All @@ -182,12 +202,14 @@ jobs:
echo "response_out: $response"
echo "=========="
echo "response_out=$(echo $response| tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Get modified_on for NIGHTMARE_HD_CACHEKEY
id: get_modified_on_NIGHTMARE_HD
run: |
modified_on=$(jq -r '.result[0].modified_on' <<< '${{ steps.get_cf_deployments_NIGHTMARE_HD.outputs.response_out }}' | date -u -f - +%s)
echo "modified_on is $modified_on"
echo "modified_on=${modified_on}" >> $GITHUB_OUTPUT
- name: Github Cachekey Update for NIGHTMARE_HD_CACHEKEY
id: gh_cachekey_update_NIGHTMARE_HD
run: |
Expand All @@ -199,8 +221,10 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/acidflow-noita/noitamap/actions/variables/${PROJECT_CACHEKEY_VAR}\
-d "{\"name\":\"${PROJECT_CACHEKEY_VAR}\",\"value\":\"${{ steps.get_modified_on_NIGHTMARE_HD.outputs.modified_on }}\"}"
- name: NOITAVANIA_CACHEKEY
run: echo "current NOITAVANIA_CACHEKEY = ${{ vars.NOITAVANIA_CACHEKEY }}"
run: echo "current NOITAVANIA_CACHEKEY = ${{ env.NOITAVANIA_CACHEKEY }}"

- name: Get CF deployment for NOITAVANIA_CACHEKEY
id: get_cf_deployments_NOITAVANIA
run: |
Expand All @@ -211,12 +235,14 @@ jobs:
echo "response_out: $response"
echo "=========="
echo "response_out=$(echo $response| tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Get modified_on for NOITAVANIA_CACHEKEY
id: get_modified_on_NOITAVANIA
run: |
modified_on=$(jq -r '.result[0].modified_on' <<< '${{ steps.get_cf_deployments_NOITAVANIA.outputs.response_out }}' | date -u -f - +%s)
echo "modified_on is $modified_on"
echo "modified_on=${modified_on}" >> $GITHUB_OUTPUT
- name: Github Cachekey Update for NOITAVANIA_CACHEKEY
id: gh_cachekey_update_NOITAVANIA
run: |
Expand All @@ -228,8 +254,10 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/acidflow-noita/noitamap/actions/variables/${PROJECT_CACHEKEY_VAR}\
-d "{\"name\":\"${PROJECT_CACHEKEY_VAR}\",\"value\":\"${{ steps.get_modified_on_NOITAVANIA.outputs.modified_on }}\"}"
- name: NOITAVANIA_NEW_GAME_PLUS_CACHEKEY
run: echo "current NOITAVANIA_NEW_GAME_PLUS_CACHEKEY = ${{ vars.NOITAVANIA_NEW_GAME_PLUS_CACHEKEY }}"
run: echo "current NOITAVANIA_NEW_GAME_PLUS_CACHEKEY = ${{ env.NOITAVANIA_NEW_GAME_PLUS_CACHEKEY }}"

- name: Get CF deployment for NOITAVANIA_NEW_GAME_PLUS_CACHEKEY
id: get_cf_deployments_NOITAVANIA_NEW_GAME_PLUS
run: |
Expand All @@ -240,12 +268,14 @@ jobs:
echo "response_out: $response"
echo "=========="
echo "response_out=$(echo $response| tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Get modified_on for NOITAVANIA_NEW_GAME_PLUS_CACHEKEY
id: get_modified_on_NOITAVANIA_NEW_GAME_PLUS
run: |
modified_on=$(jq -r '.result[0].modified_on' <<< '${{ steps.get_cf_deployments_NOITAVANIA_NEW_GAME_PLUS.outputs.response_out }}' | date -u -f - +%s)
echo "modified_on is $modified_on"
echo "modified_on=${modified_on}" >> $GITHUB_OUTPUT
- name: Github Cachekey Update for NOITAVANIA_NEW_GAME_PLUS_CACHEKEY
id: gh_cachekey_update_NOITAVANIA_NEW_GAME_PLUS
run: |
Expand All @@ -258,7 +288,8 @@ jobs:
https://api.github.com/repos/acidflow-noita/noitamap/actions/variables/${PROJECT_CACHEKEY_VAR}\
-d "{\"name\":\"${PROJECT_CACHEKEY_VAR}\",\"value\":\"${{ steps.get_modified_on_NOITAVANIA_NEW_GAME_PLUS.outputs.modified_on }}\"}"
- name: PURGATORY_CACHEKEY
run: echo "current PURGATORY_CACHEKEY = ${{ vars.PURGATORY_CACHEKEY }}"
run: echo "current PURGATORY_CACHEKEY = ${{ env.PURGATORY_CACHEKEY }}"

- name: Get CF deployment for PURGATORY_CACHEKEY
id: get_cf_deployments_PURGATORY
run: |
Expand All @@ -269,12 +300,14 @@ jobs:
echo "response_out: $response"
echo "=========="
echo "response_out=$(echo $response| tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Get modified_on for PURGATORY_CACHEKEY
id: get_modified_on_PURGATORY
run: |
modified_on=$(jq -r '.result[0].modified_on' <<< '${{ steps.get_cf_deployments_PURGATORY.outputs.response_out }}' | date -u -f - +%s)
echo "modified_on is $modified_on"
echo "modified_on=${modified_on}" >> $GITHUB_OUTPUT
- name: Github Cachekey Update for PURGATORY_CACHEKEY
id: gh_cachekey_update_PURGATORY
run: |
Expand All @@ -286,8 +319,10 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/acidflow-noita/noitamap/actions/variables/${PROJECT_CACHEKEY_VAR}\
-d "{\"name\":\"${PROJECT_CACHEKEY_VAR}\",\"value\":\"${{ steps.get_modified_on_PURGATORY.outputs.modified_on }}\"}"
- name: REGULAR_LEFT_PW_CACHEKEY
run: echo "current REGULAR_LEFT_PW_CACHEKEY = ${{ vars.REGULAR_LEFT_PW_CACHEKEY }}"
run: echo "current REGULAR_LEFT_PW_CACHEKEY = ${{ env.REGULAR_LEFT_PW_CACHEKEY }}"

- name: Get CF deployment for REGULAR_LEFT_PW_CACHEKEY
id: get_cf_deployments_REGULAR_LEFT_PW
run: |
Expand All @@ -298,12 +333,14 @@ jobs:
echo "response_out: $response"
echo "=========="
echo "response_out=$(echo $response| tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Get modified_on for REGULAR_LEFT_PW_CACHEKEY
id: get_modified_on_REGULAR_LEFT_PW
run: |
modified_on=$(jq -r '.result[0].modified_on' <<< '${{ steps.get_cf_deployments_REGULAR_LEFT_PW.outputs.response_out }}' | date -u -f - +%s)
echo "modified_on is $modified_on"
echo "modified_on=${modified_on}" >> $GITHUB_OUTPUT
- name: Github Cachekey Update for REGULAR_LEFT_PW_CACHEKEY
id: gh_cachekey_update_REGULAR_LEFT_PW
run: |
Expand All @@ -315,8 +352,10 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/acidflow-noita/noitamap/actions/variables/${PROJECT_CACHEKEY_VAR}\
-d "{\"name\":\"${PROJECT_CACHEKEY_VAR}\",\"value\":\"${{ steps.get_modified_on_REGULAR_LEFT_PW.outputs.modified_on }}\"}"
- name: REGULAR_MAIN_BRANCH_CACHEKEY
run: echo "current REGULAR_MAIN_BRANCH_CACHEKEY = ${{ vars.REGULAR_MAIN_BRANCH_CACHEKEY }}"
run: echo "current REGULAR_MAIN_BRANCH_CACHEKEY = ${{ env.REGULAR_MAIN_BRANCH_CACHEKEY }}"

- name: Get CF deployment for REGULAR_MAIN_BRANCH_CACHEKEY
id: get_cf_deployments_REGULAR_MAIN_BRANCH
run: |
Expand All @@ -327,12 +366,14 @@ jobs:
echo "response_out: $response"
echo "=========="
echo "response_out=$(echo $response| tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Get modified_on for REGULAR_MAIN_BRANCH_CACHEKEY
id: get_modified_on_REGULAR_MAIN_BRANCH
run: |
modified_on=$(jq -r '.result[0].modified_on' <<< '${{ steps.get_cf_deployments_REGULAR_MAIN_BRANCH.outputs.response_out }}' | date -u -f - +%s)
echo "modified_on is $modified_on"
echo "modified_on=${modified_on}" >> $GITHUB_OUTPUT
- name: Github Cachekey Update for REGULAR_MAIN_BRANCH_CACHEKEY
id: gh_cachekey_update_REGULAR_MAIN_BRANCH
run: |
Expand All @@ -344,8 +385,10 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/acidflow-noita/noitamap/actions/variables/${PROJECT_CACHEKEY_VAR}\
-d "{\"name\":\"${PROJECT_CACHEKEY_VAR}\",\"value\":\"${{ steps.get_modified_on_REGULAR_MAIN_BRANCH.outputs.modified_on }}\"}"
- name: REGULAR_MIDDLE_CACHEKEY
run: echo "current REGULAR_MIDDLE_CACHEKEY = ${{ vars.REGULAR_MIDDLE_CACHEKEY }}"
run: echo "current REGULAR_MIDDLE_CACHEKEY = ${{ env.REGULAR_MIDDLE_CACHEKEY }}"

- name: Get CF deployment for REGULAR_MIDDLE_CACHEKEY
id: get_cf_deployments_REGULAR_MIDDLE
run: |
Expand All @@ -356,12 +399,14 @@ jobs:
echo "response_out: $response"
echo "=========="
echo "response_out=$(echo $response| tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Get modified_on for REGULAR_MIDDLE_CACHEKEY
id: get_modified_on_REGULAR_MIDDLE
run: |
modified_on=$(jq -r '.result[0].modified_on' <<< '${{ steps.get_cf_deployments_REGULAR_MIDDLE.outputs.response_out }}' | date -u -f - +%s)
echo "modified_on is $modified_on"
echo "modified_on=${modified_on}" >> $GITHUB_OUTPUT
- name: Github Cachekey Update for REGULAR_MIDDLE_CACHEKEY
id: gh_cachekey_update_REGULAR_MIDDLE
run: |
Expand All @@ -373,8 +418,10 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/acidflow-noita/noitamap/actions/variables/${PROJECT_CACHEKEY_VAR}\
-d "{\"name\":\"${PROJECT_CACHEKEY_VAR}\",\"value\":\"${{ steps.get_modified_on_REGULAR_MIDDLE.outputs.modified_on }}\"}"
- name: REGULAR_RIGHT_PW_CACHEKEY
run: echo "current REGULAR_RIGHT_PW_CACHEKEY = ${{ vars.REGULAR_RIGHT_PW_CACHEKEY }}"
run: echo "current REGULAR_RIGHT_PW_CACHEKEY = ${{ env.REGULAR_RIGHT_PW_CACHEKEY }}"

- name: Get CF deployment for REGULAR_RIGHT_PW_CACHEKEY
id: get_cf_deployments_REGULAR_RIGHT_PW
run: |
Expand All @@ -385,12 +432,14 @@ jobs:
echo "response_out: $response"
echo "=========="
echo "response_out=$(echo $response| tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Get modified_on for REGULAR_RIGHT_PW_CACHEKEY
id: get_modified_on_REGULAR_RIGHT_PW
run: |
modified_on=$(jq -r '.result[0].modified_on' <<< '${{ steps.get_cf_deployments_REGULAR_RIGHT_PW.outputs.response_out }}' | date -u -f - +%s)
echo "modified_on is $modified_on"
echo "modified_on=${modified_on}" >> $GITHUB_OUTPUT
- name: Github Cachekey Update for REGULAR_RIGHT_PW_CACHEKEY
id: gh_cachekey_update_REGULAR_RIGHT_PW
run: |
Expand All @@ -402,7 +451,8 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/acidflow-noita/noitamap/actions/variables/${PROJECT_CACHEKEY_VAR}\
-d "{\"name\":\"${PROJECT_CACHEKEY_VAR}\",\"value\":\"${{ steps.get_modified_on_REGULAR_RIGHT_PW.outputs.modified_on }}\"}"
- name: Print all var names after change
- name: Print all var names after change
run: |
echo "ALTERNATE_BIOMES_CACHEKEY is ${{ vars.ALTERNATE_BIOMES_CACHEKEY }}"
echo "APOTHEOSIS_CACHEKEY is ${{ vars.APOTHEOSIS_CACHEKEY }}"
Expand Down

0 comments on commit 21c99c5

Please sign in to comment.