Skip to content

chore: update version + change log #239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions ci.cd/update_version_commit.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
#!/usr/bin/env bash
#current_branch=`git branch --show-current`
current_branch='develop-2023-10-02'
temp_branch="chore-version-update"
commit_message="chore: update version + change log"

git stash
git checkout -b ${temp_branch}
git stash pop
git status
git diff
git config --local user.email "wai.phyo@jpl.nasa.gov"
git config --local user.name ${GITHUB_TRIGGERING_ACTOR}

current_branch=`git branch --show-current`
temp_branch="chore-version-update"
commit_message="chore: update version + change log"
git checkout -b
git add -u
git commit -m ${commit_message}
git commit -m "${commit_message}"
git push --force origin $temp_branch
pr_number=`gh pr create --base ${current_branch} --head ${$temp_branch} --title ${commit_message} | grep -oP '#\K\d+'`
result=`gh pr create --base "${current_branch}" --body "NA" --head "${temp_branch}" --title "${commit_message}"`
echo $result
pr_number=`echo $result | grep -oE '[0-9]+$'`
echo ${pr_number}
gh pr review $pr_number --approve
gh pr merge $pr_number --squash --merge
#gh pr review $pr_number --approve
# hi
gh pr merge $pr_number --squash --admin
git branch -D ${temp_branch}