Skip to content

Commit b34308a

Browse files
committed
Try to run again
1 parent 5185736 commit b34308a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/actions/setup-go/action.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: 'Setup the Go environment'
22
description: 'Installs go and restores/saves the build/module cache'
33
inputs:
4-
git-repo-dirs:
5-
description: "Go code git repository directories (for mtime-restoration). Note that this requires cloning the repo's full history"
4+
git-dir:
5+
description: "Git repository directory (for mtime-restoration). Note that this requires cloning the repo's full history"
66
required: false
7-
default: '["."]'
7+
default: '.'
88
runs:
99
using: "composite"
1010
steps:
@@ -23,9 +23,11 @@ runs:
2323
# recent commit that modified them as mtimes affect the Go test cache.
2424
# See https://github.com/golang/go/issues/58571 for details
2525
# Note that this requires checking out the repos with fetch-depth: 0
26-
- name: Restore modification time of checkout files
27-
uses: chetan/git-restore-mtime-action@075f9bc9d159805603419d50f794bd9f33252ebe
28-
26+
- if: inputs.git-dir != ''
27+
name: Restore modification time of checkout files
28+
uses: chetan/git-restore-mtime-action@301991bb840275c304501780b55c4cc0ba7450ba
29+
with:
30+
working-directory: ${{ inputs.git-dir }}
2931

3032
# KEY_PREFIX must uniquely identify the specific instance of a job executing.
3133
- shell: bash

0 commit comments

Comments
 (0)