ensure the cache key is unique to the sha

develop
Myk Taylor 2023-06-08 13:35:29 -07:00
parent efdc18dfe7
commit c3326d11fa
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 5 additions and 5 deletions

@ -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