Skip to content

Commit

Permalink
remove the CONNECTOR_HUB_DIRECTORY flag
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Jul 16, 2024
1 parent 42d9c9c commit 332366f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/registry-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ jobs:
MODIFIED_FILES: ${{ steps.changed-files.outputs.modified_files }}
DELETED_FILES: ${{ steps.changed-files.outputs.deleted_files }}
run: |
echo "{\"added_files\": $ADDED_FILES, \"modified_files\": $MODIFIED_FILES, \"deleted_files\": $DELETED_FILES}" > changed_files.txt
echo "{\"added_files\": $ADDED_FILES, \"modified_files\": $MODIFIED_FILES, \"deleted_files\": $DELETED_FILES}" > changed_files.json
- name: List changed files
id: list_files
run: |
cat changed_files.txt
cat changed_files.json
- name: Pseudocode for Next steps
id: next_steps
Expand All @@ -65,7 +65,7 @@ jobs:

- name: Run registry automation program
env:
CHANGED_FILES_PATH: "changed_files.txt"
CHANGED_FILES_PATH: "changed_files.json"
run: |
cd registry-automation
go run main.go ci
10 changes: 5 additions & 5 deletions registry-automation/cmd/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ func init() {
}

// Location of the registry files
var rfpE = os.Getenv(`CONNECTOR_HUB_DIRECTORY`)
ciCmd.PersistentFlags().String("connector-hub-directory", rfpE, "path to the connector hub checkout directory")
if rfpE == "" {
ciCmd.MarkPersistentFlagRequired("connector-hub-directory")
}
// var rfpE = os.Getenv(`CONNECTOR_HUB_DIRECTORY`)
// ciCmd.PersistentFlags().String("connector-hub-directory", rfpE, "path to the connector hub checkout directory")
// if rfpE == "" {
// ciCmd.MarkPersistentFlagRequired("connector-hub-directory")
// }

// TODO: Check
rand.Seed(time.Now().UnixNano())
Expand Down

0 comments on commit 332366f

Please sign in to comment.