-
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
3 changed files
with
37 additions
and
4 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
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 @@ | ||
| naray007 |
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 |
|---|---|---|
| @@ -1,7 +1,25 @@ | ||
| #!/bin/bash | ||
|
|
||
| VERSION="1.1.1" | ||
| SCRIPT="$(pwd)/add-gpg-keys.edl.sh" | ||
| SCRIPTBASE=$(basename $SCRIPT .sh) | ||
| LOGFILE="$SCRIPTBASE.sh.$(date +%s).log" | ||
| USERSFILE="$(pwd)/$SCRIPTBASE.users-add.txt" | ||
| if [ ! -r $USERSFILE ] | ||
| then | ||
| echo "* missing $USERSFILE" | ||
| exit 1 | ||
| else | ||
| echo "* reading users from $USERSFILE" | ||
| USERS=$(cat $USERSFILE) | ||
| fi | ||
|
|
||
| echo "* running $SCRIPT across all EDL repos for users $USERS, log in $LOGFILE" | ||
|
|
||
| GITHUB_HOSTNAME=github.e.it.census.gov GITHUB_OAUTH_TOKEN=ae2f950f5d628d665e6498bc699cdf24566bd94c git-xargs \ | ||
| --branch-name master \ | ||
| --skip-pull-requests \ | ||
| --commit-message '[xargs] add gpg for user users' \ | ||
| --commit-message "[xargs] add gpg for users $USERS" \ | ||
| --no-skip-ci \ | ||
| --repos tf-repo.edl.txt \ | ||
| "$(pwd)/add-gpg-keys.edl.sh" |& tee add-gpg-keys.edl.sh.$(date +%s).log | ||
| "$SCRIPT" "$USERSFILE" |& tee $LOGFILE |