From b34308aad3c6d0736d2d18605ecc2d11c012e55c Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Thu, 4 Jul 2024 04:12:28 +0200 Subject: [PATCH] Try to run again --- .github/actions/setup-go/action.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/actions/setup-go/action.yml b/.github/actions/setup-go/action.yml index 8b6c3aac..321995dc 100644 --- a/.github/actions/setup-go/action.yml +++ b/.github/actions/setup-go/action.yml @@ -1,10 +1,10 @@ name: 'Setup the Go environment' description: 'Installs go and restores/saves the build/module cache' inputs: - git-repo-dirs: - description: "Go code git repository directories (for mtime-restoration). Note that this requires cloning the repo's full history" + git-dir: + description: "Git repository directory (for mtime-restoration). Note that this requires cloning the repo's full history" required: false - default: '["."]' + default: '.' runs: using: "composite" steps: @@ -23,9 +23,11 @@ runs: # recent commit that modified them as mtimes affect the Go test cache. # See https://github.com/golang/go/issues/58571 for details # Note that this requires checking out the repos with fetch-depth: 0 - - name: Restore modification time of checkout files - uses: chetan/git-restore-mtime-action@075f9bc9d159805603419d50f794bd9f33252ebe - + - if: inputs.git-dir != '' + name: Restore modification time of checkout files + uses: chetan/git-restore-mtime-action@301991bb840275c304501780b55c4cc0ba7450ba + with: + working-directory: ${{ inputs.git-dir }} # KEY_PREFIX must uniquely identify the specific instance of a job executing. - shell: bash