From 9808cdf60e0d87977dea41cccb2ab273d9e05104 Mon Sep 17 00:00:00 2001 From: Denis Freund Date: Mon, 20 Nov 2023 13:38:01 +0100 Subject: [PATCH] chore: remove short sha from releases yaml --- .github/workflows/livery-package-release.yml | 14 ++------------ .github/workflows/livery-package-staging.yml | 16 +++------------- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/.github/workflows/livery-package-release.yml b/.github/workflows/livery-package-release.yml index dffacb04c..0e53aa4ca 100644 --- a/.github/workflows/livery-package-release.yml +++ b/.github/workflows/livery-package-release.yml @@ -76,16 +76,11 @@ jobs: - name: Upload to CloudFlare CDN run: | ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./hdw-a339x-liveries/out/build-modules - - name: Get short SHA - uses: benjlevesque/short-sha@v2.2 - id: short-sha - name: Upload Release Config to CloudFlare CDN - env: - SHA: ${{ steps.short-sha.outputs.sha }} run: | mkdir -p ./hdw-a339x-liveries/out/config echo "releases:" >> ./hdw-a339x-liveries/out/config/releases.yaml - echo " - name: $SHA" >> ./hdw-a339x-liveries/out/config/releases.yaml + echo " - name: $GITHUB_REF_NAME" >> ./hdw-a339x-liveries/out/config/releases.yaml echo " date: $(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> ./hdw-a339x-liveries/out/config/releases.yaml ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./hdw-a339x-liveries/out/config build-su95x-livery-package: @@ -148,15 +143,10 @@ jobs: - name: Upload to CloudFlare CDN run: | ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./hdw-su95x-liveries/out/build-modules - - name: Get short SHA - uses: benjlevesque/short-sha@v2.2 - id: short-sha - name: Upload Release Config to CloudFlare CDN - env: - SHA: ${{ steps.short-sha.outputs.sha }} run: | mkdir -p ./hdw-su95x-liveries/out/config echo "releases:" >> ./hdw-su95x-liveries/out/config/releases.yaml - echo " - name: $SHA" >> ./hdw-su95x-liveries/out/config/releases.yaml + echo " - name: $GITHUB_REF_NAME" >> ./hdw-su95x-liveries/out/config/releases.yaml echo " date: $(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> ./hdw-su95x-liveries/out/config/releases.yaml ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./hdw-su95x-liveries/out/config \ No newline at end of file diff --git a/.github/workflows/livery-package-staging.yml b/.github/workflows/livery-package-staging.yml index 514630b94..7794a5ad3 100644 --- a/.github/workflows/livery-package-staging.yml +++ b/.github/workflows/livery-package-staging.yml @@ -73,17 +73,12 @@ jobs: cd ../../ - name: Upload to CloudFlare CDN run: | - ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./hdw-a339x-liveries/out/build-modules - - name: Get short SHA - uses: benjlevesque/short-sha@v2.2 - id: short-sha + ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./hdw-a339x-liveries/out/build-modules - name: Upload Release Config to CloudFlare CDN - env: - SHA: ${{ steps.short-sha.outputs.sha }} run: | mkdir -p ./hdw-a339x-liveries/out/config echo "releases:" >> ./hdw-a339x-liveries/out/config/releases.yaml - echo " - name: $SHA" >> ./hdw-a339x-liveries/out/config/releases.yaml + echo " - name: $GITHUB_REF_NAME" >> ./hdw-a339x-liveries/out/config/releases.yaml echo " date: $(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> ./hdw-a339x-liveries/out/config/releases.yaml ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./hdw-a339x-liveries/out/config build-su95x-livery-package: @@ -145,15 +140,10 @@ jobs: - name: Upload to CloudFlare CDN run: | ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./hdw-su95x-liveries/out/build-modules - - name: Get short SHA - uses: benjlevesque/short-sha@v2.2 - id: short-sha - name: Upload Release Config to CloudFlare CDN - env: - SHA: ${{ steps.short-sha.outputs.sha }} run: | mkdir -p ./hdw-su95x-liveries/out/config echo "releases:" >> ./hdw-su95x-liveries/out/config/releases.yaml - echo " - name: $SHA" >> ./hdw-su95x-liveries/out/config/releases.yaml + echo " - name: $GITHUB_REF_NAME" >> ./hdw-su95x-liveries/out/config/releases.yaml echo " date: $(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> ./hdw-su95x-liveries/out/config/releases.yaml ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./hdw-su95x-liveries/out/config \ No newline at end of file