@@ -25,22 +25,22 @@ jobs:
2525 run : |
2626 set -euo pipefail
2727
28- git fetch origin main production
28+ git fetch origin main beta
2929
30- if [ -z "$(git log --oneline origin/production ..origin/main )" ]; then
31- echo "No commits to deploy from main to production ."
30+ if [ -z "$(git log --oneline origin/main ..origin/beta )" ]; then
31+ echo "No commits to deploy from beta to main ."
3232 exit 0
3333 fi
3434
35- compare_url="${{ github.server_url }}/${{ github.repository }}/compare/production ...main "
36- recent_commits="$(git log --oneline --max-count=25 origin/production ..origin/main )"
37- existing_pr="$(gh pr list --base production --head main --state open --json number --jq '.[0].number')"
35+ compare_url="${{ github.server_url }}/${{ github.repository }}/compare/main ...beta "
36+ recent_commits="$(git log --oneline --max-count=25 origin/main ..origin/beta )"
37+ existing_pr="$(gh pr list --base main --head beta --state open --json number --jq '.[0].number')"
3838 body_file="$(mktemp)"
3939
4040 {
4141 echo "## Summary"
4242 echo
43- echo "Deploy the current \`main \` branch to \`production \`."
43+ echo "Deploy the current \`beta \` branch to production by merging it into \`main \`."
4444 echo
4545 echo "Compare: ${compare_url}"
4646 echo
@@ -53,15 +53,15 @@ jobs:
5353
5454 if [ -n "${existing_pr}" ]; then
5555 gh pr edit "${existing_pr}" \
56- --title "Deploy main to production" \
56+ --title "Deploy beta to production" \
5757 --body-file "${body_file}"
5858 echo "Updated existing deploy PR #${existing_pr}."
5959 exit 0
6060 fi
6161
6262 gh pr create \
6363 --draft \
64- --base production \
65- --head main \
66- --title "Deploy main to production" \
64+ --base main \
65+ --head beta \
66+ --title "Deploy beta to production" \
6767 --body-file "${body_file}"
0 commit comments