From c3326d11fa97e67ef372d2d8abca813eedaa1e28 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Thu, 8 Jun 2023 13:35:29 -0700 Subject: [PATCH] ensure the cache key is unique to the sha --- .github/workflows/steam.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/steam.yml b/.github/workflows/steam.yml index 90f046b40..e4178e1d0 100644 --- a/.github/workflows/steam.yml +++ b/.github/workflows/steam.yml @@ -3,7 +3,7 @@ name: Deploy to Steam on: workflow_dispatch: inputs: - commit_hash: + ref: description: Branch or commit hash type: string required: true @@ -32,7 +32,7 @@ jobs: with: submodules: true fetch-depth: 0 - ref: ${{ github.event.inputs.commit_hash }} + ref: ${{ github.event.inputs.ref }} - name: Get 3rd party SDKs uses: actions/checkout@v3 with: @@ -44,9 +44,8 @@ jobs: uses: actions/cache@v3 with: path: build/win64-cross/ccache - key: ccache-win64-cross-msvc-${{ github.event.inputs.commit_hash }} + key: ccache-win64-cross-msvc-${{ github.sha }} restore-keys: | - ccache-win64-cross-msvc-${{ github.event.inputs.commit_hash }} ccache-win64-cross-msvc - name: Cross-compile win64 artifacts env: @@ -54,7 +53,8 @@ jobs: steam_username: ${{ secrets.STEAM_SDK_USERNAME }} steam_password: ${{ secrets.STEAM_SDK_PASSWORD }} run: | - echo "commit: ${{ github.event.inputs.commit_hash }}" + echo "ref: ${{ github.event.inputs.ref }}" + echo "sha: ${{ github.sha }}" echo "version: ${{ github.event.inputs.version }}" echo "release_channel: ${{ github.event.inputs.release_channel }}" echo