-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| #!/bin/bash | ||
|
|
||
| NAME="get-module-details" | ||
|
|
||
| LOGFILE="/tmp/output.$NAME.git-xargs.${XARGS_REPO_NAME}.log" | ||
| REPO="$XARGS_REPO_OWNER/$XARGS_REPO_NAME" | ||
| echo "# $REPO" |& tee -a $LOGFILE | ||
|
|
||
| # enter command(s) to read something from repo | ||
| # git grep --all-match -e security_group_ -e source.*efs -n |& tee -a $LOGFILE | ||
|
|
||
| pwd |& tee -a $LOGFILE | ||
|
|
||
| echo "source=aws-vpc-setup" |& tee -a $LOGFILE | ||
| git grep source.*aws-vpc-setup |& tee -a $LOGFILE | ||
|
|
||
| echo "source=aws-info-setup" |& tee -a $LOGFILE | ||
| git grep source.*aws-inf-setup |& tee -a $LOGFILE | ||
|
|
||
| echo "" |& tee -a $LOGFILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/bin/bash | ||
|
|
||
| # template for a read-access operation | ||
|
|
||
| SCRIPT="get-module-details" | ||
| READ_MESSAGE="[xargs] $SCRIPT" | ||
|
|
||
| GITHUB_HOSTNAME=github.e.it.census.gov GITHUB_OAUTH_TOKEN=ae2f950f5d628d665e6498bc699cdf24566bd94c git-xargs \ | ||
| --branch-name master \ | ||
| --skip-pull-requests \ | ||
| --commit-message "$READ_MESSAGE" \ | ||
| --no-skip-ci \ | ||
| --dry-run \ | ||
| --repos tf-repo.all.txt \ | ||
| "$(pwd)/$SCRIPT.sh" |& tee $SCRIPT.sh.$(date +%s).log | ||
|
|
||
| mkdir -p $SCRIPT |