diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 4134bdf7c..a56443175 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -61,7 +61,8 @@ jobs: uses: actions/cache@v1 with: path: deb-icinga2/ccache - key: '${{ matrix.distro.name }}/${{ matrix.distro.codename }}-ccache' + key: |- + ${{ matrix.distro.name }}/${{ matrix.distro.codename }}-ccache-${{ hashFiles('deb-icinga2/ccache') }} - name: Binary x64 run: | @@ -195,7 +196,8 @@ jobs: uses: actions/cache@v1 with: path: rpm-icinga2/ccache - key: '${{ matrix.distro.name }}/${{ matrix.distro.release }}-ccache' + key: |- + ${{ matrix.distro.name }}/${{ matrix.distro.release }}-ccache-${{ hashFiles('rpm-icinga2/ccache') }} - name: Binary if: "steps.vars.outputs.CAN_BUILD == 'true'" @@ -264,7 +266,8 @@ jobs: uses: actions/cache@v1 with: path: raspbian-icinga2/ccache - key: 'raspbian/${{ matrix.codename }}-ccache' + key: |- + raspbian/${{ matrix.codename }}-ccache-${{ hashFiles('raspbian-icinga2/ccache') }} - name: Binary run: |