Skip to content

Commit aea49a0

Browse files
committed
rename setups to setup-files
1 parent ba6cd40 commit aea49a0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/cloud-samples-tools/cmd/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var usage = `usage: tools <command> ...
3030
3131
commands:
3232
affected path/to/config.jsonc diffs.txt paths.txt
33-
setups path/to/config.jsonc paths.txt
33+
setup-files path/to/config.jsonc paths.txt
3434
`
3535

3636
// Entry point to validate command line arguments.
@@ -58,7 +58,7 @@ func main() {
5858
}
5959
affectedCmd(configFile, diffsFile, pathsFile)
6060

61-
case "setups":
61+
case "setup-files":
6262
configFile := flag.Arg(1)
6363
if configFile == "" {
6464
log.Fatalln("❌ no config file specified\n", usage)
@@ -67,7 +67,7 @@ func main() {
6767
if pathsFile == "" {
6868
log.Fatalln("❌ no paths file specified\n", usage)
6969
}
70-
setupsCmd(configFile, pathsFile)
70+
setupFilesCmd(configFile, pathsFile)
7171

7272
default:
7373
log.Fatalln("❌ unknown command: ", command, "\n", usage)
@@ -119,8 +119,8 @@ func affectedCmd(configFile string, diffsFile string, pathsFile string) {
119119
fmt.Println(string(output))
120120
}
121121

122-
// setupsCmd command entry point to validate inputs.
123-
func setupsCmd(configFile string, pathsFile string) {
122+
// setupFilesCmd command entry point to validate inputs.
123+
func setupFilesCmd(configFile string, pathsFile string) {
124124
config, err := c.LoadConfig(configFile)
125125
if err != nil {
126126
log.Fatalln("❌ error loading the config file: ", configFile, "\n", err)

.github/workflows/ci-dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
run: |
5050
echo "paths=$(./tools affected .github/config/nodejs-dev.jsonc diffs.txt paths.txt)" >> $GITHUB_OUTPUT
5151
cat paths.txt
52-
echo "setups=$(./tools setups .github/config/nodejs-dev.jsonc paths.txt)" >> $GITHUB_OUTPUT
52+
echo "setups=$(./tools setup-files .github/config/nodejs-dev.jsonc paths.txt)" >> $GITHUB_OUTPUT
5353
5454
nodejs-test:
5555
name: Node.js test

.github/workflows/ci-prod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
run: |
5050
echo "paths=$(./tools affected .github/config/nodejs-prod.jsonc diffs.txt paths.txt)" >> $GITHUB_OUTPUT
5151
cat paths.txt
52-
echo "setups=$(./tools setups .github/config/nodejs-prod.jsonc paths.txt)" >> $GITHUB_OUTPUT
52+
echo "setups=$(./tools setup-files .github/config/nodejs-prod.jsonc paths.txt)" >> $GITHUB_OUTPUT
5353
5454
nodejs-lint:
5555
name: Node.js lint

0 commit comments

Comments
 (0)