File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : ' Setup the Go environment'
2
2
description : ' Installs go and restores/saves the build/module cache'
3
3
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"
6
6
required : false
7
- default : ' ["."] '
7
+ default : ' . '
8
8
runs :
9
9
using : " composite"
10
10
steps :
23
23
# recent commit that modified them as mtimes affect the Go test cache.
24
24
# See https://github.com/golang/go/issues/58571 for details
25
25
# 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 }}
29
31
30
32
# KEY_PREFIX must uniquely identify the specific instance of a job executing.
31
33
- shell : bash
You can’t perform that action at this time.
0 commit comments