diff --git a/.gitea/workflows/built-bin.yaml b/.gitea/workflows/built-bin.yaml index a0331de..9c99ad0 100644 --- a/.gitea/workflows/built-bin.yaml +++ b/.gitea/workflows/built-bin.yaml @@ -45,6 +45,15 @@ jobs: path: ./target/release/network-monitor key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} + + - id: restore-executable-binary + name: Restore Executable Binary + uses: https://github.com/actions/cache/restore@v3 + with: + path: ./target/release/network-monitor + key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} + fail-on-cache-miss: true + docker: runs-on: ubuntu-latest container: @@ -64,16 +73,12 @@ jobs: uses: https://github.com/Maxyme/get-release-or-tag@v2 - id: restore-executable-binary - name: Cache Executable Binaries + name: Restore Executable Binary uses: https://github.com/actions/cache/restore@v3 with: path: ./target/release/network-monitor key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} - - - if: ${{ steps.restore-executable-binary.outputs.cache-hit != 'true' }} - name: Check if binary not exists - run: echo "missing program" - continue-on-error: false + fail-on-cache-miss: true - name: Log in to the Container registry uses: https://github.com/docker/login-action@v2