From: Daan De Meyer Date: Sun, 22 May 2022 08:50:12 +0000 (+0200) Subject: action: Use /etc/os-release as cache key instead of runner.os X-Git-Tag: v13~11^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0f789817b08922ced8d337907c8e41cc494e767;p=thirdparty%2Fmkosi.git action: Use /etc/os-release as cache key instead of runner.os --- diff --git a/action.yaml b/action.yaml index f5a1075e1..78b073373 100644 --- a/action.yaml +++ b/action.yaml @@ -5,11 +5,19 @@ runs: using: composite steps: + - name: Copy /etc/os-release + shell: bash + run: | + cp /etc/os-release $GITHUB_WORKSPACE + # hashFiles() only works on files inside $GITHUB_WORKSPACE so let's copy /etc/os-release to that + # location. + cat os-release + - name: Cache dependencies uses: actions/cache@v3 with: path: build - key: ${{ runner.os }}-${{ hashFiles('action/setup-pacman.sh') }} + key: ${{ hashFiles('os-release', 'action/setup-pacman.sh') }} - name: Dependencies shell: bash