Skip to content

Commit

Permalink
A small tweak in the PR title
Browse files Browse the repository at this point in the history
  • Loading branch information
emZubair committed Oct 1, 2023
1 parent 327754d commit e082210
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autoupdate-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ then
git add -A

# commit the changes to updated files
git commit -a -m "Auto-updated dependencies on $job_date" --signoff
git commit -a -m ":arrow_up: Auto-updated dependencies on $job_date" --signoff

# push the changes
git push authenticated -f
Expand All @@ -97,8 +97,8 @@ then

# create the PR
# if PR already exists, then update
title="Dependencies updated on $job_date"
pr_message="### :arrow_up: $title \nThis pull request is generated by GitHub action based on the provided update commands."
title=":arrow_up: Dependencies updated on $job_date"
pr_message="### $title \nThis pull request is generated by GitHub action based on the provided update commands."
response=$(curl --write-out "%{message}\n" -X POST -H "Content-Type: application/json" -H "Authorization: token $token" \
--data '{"title":"'"$title"'","head": "'"$branch_name"'","base":"'"$pr_branch"'", "body":"'"$pr_message"'"}' \
"https://api.github.com/repos/$repo/pulls")
Expand Down

0 comments on commit e082210

Please sign in to comment.