Skip to content

Commit

Permalink
use short sha in branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
leijerry888 committed Jan 10, 2024
1 parent c5e6204 commit d51df34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osstd_data_update/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd openstudio-standards
echo "===="

echo "Step 2: Create new branch data_update_$COMMIT_ID in OSSTD"
git checkout -b data_update
git checkout -b data_update_${COMMIT_ID:0:7}
echo "===="

echo "Step 3: Clone data repo"
Expand All @@ -28,11 +28,11 @@ cd ../../
rm -rf data_update
echo "===="

echo "Step 6: push new branch to OSSTD github $GHTOKEN (REPLACE TOKEN AFTER TEST!!!)"
echo "Step 6: push new branch to OSSTD github"
git config --global user.email "xuechen.lei@pnnl.gov"
git config --global user.name "Xuechen (Jerry) Lei"
git add --all
git commit -m "data_update $COMMIT_ID"
git remote set-url origin https://leijerry888:$GHTOKEN@github.com/NREL/openstudio-standards.git
git push -u origin data_update
git push -u origin data_update_${COMMIT_ID:0:7}
echo "===="

0 comments on commit d51df34

Please sign in to comment.