Skip to content

Commit

Permalink
add new scripts to git
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 10, 2025
1 parent c9894ff commit b53ecdd
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
20 changes: 20 additions & 0 deletions local-app/git-xargs/get-module-details.sh
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
17 changes: 17 additions & 0 deletions local-app/git-xargs/submit.get-module-details.sh
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

0 comments on commit b53ecdd

Please sign in to comment.