Skip to content

Commit

Permalink
param base branch
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Dec 12, 2024
1 parent 74b417d commit f83d23f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/update_tag1_d7es.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash
set -euo pipefail
set +x # remove before merge

main() {
# Variables
Expand All @@ -9,8 +8,7 @@ main() {
local TEMP_BRANCH="update-$MODULE_NAME-$(date +%Y%m%d%H%M%S)"
local LATEST_VERSION
local CURRENT_VERSION


local PR_BASE_BRANCH="default"

# With these credentials, commits will be pushed to 'master' and available on
# the upstream immediately.
Expand All @@ -34,7 +32,8 @@ main() {
echo "Latest: ${LATEST_VERSION}"

if [ "$LATEST_VERSION" == "$CURRENT_VERSION" ]; then
exit # Already up to date
echo "Already up to date."
exit 0
fi

local PR_TITLE="Update $MODULE_NAME to version $LATEST_VERSION"
Expand All @@ -45,7 +44,7 @@ main() {

if [ -n "$PR_EXISTS" ]; then
echo "A PR for version $LATEST_VERSION already exists. Skipping PR creation."
exit # PR already exists
exit 0
fi

git checkout -b "$TEMP_BRANCH"
Expand All @@ -70,8 +69,7 @@ main() {
gh pr create --title "$PR_TITLE" \
--body "$PR_BODY" \
--head "$TEMP_BRANCH" \
--base default
--base "$PR_BASE_BRANCH"
}


main

1 comment on commit f83d23f

@pantheon-ci-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visit Site

Created multidev environment ci-552 for ci-update-drops-7.

Please sign in to comment.