You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# In order to make a commit, we need to initialize a user.
58
+
- name: Initialize mandatory git config
42
59
run: |
43
-
# Check if a PR already exists
44
-
EXISTING_PR=$(gh pr list --base develop --head master --json number --jq '.[0].number' || echo "")
45
-
46
-
if [ -n "$EXISTING_PR" ]; then
47
-
echo "PR #${EXISTING_PR} already exists for master -> develop"
48
-
exit 0
49
-
fi
50
-
51
-
# Create the backfill PR
52
-
gh pr create \
53
-
--base develop \
54
-
--head master \
55
-
--title "Backfill master into develop" \
56
-
--body "This PR backfills changes from master into develop after production deployment.
57
-
58
-
## Changes
59
-
This includes all changes that were merged to master.
60
-
61
-
## Notes
62
-
- Review for any conflicts
63
-
- Merge after verifying all changes are appropriate for develop branch"
64
-
65
-
echo "Created backfill PR from master to develop"
60
+
git config user.name "GitHub actions"
61
+
git config user.email noreply@github.com
62
+
63
+
- name: Push backfill branch
66
64
env:
67
-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65
+
GITHUB_TOKEN: ${{ secrets.ACTIONS_NICHOLAS_PAT }}
66
+
run: |
67
+
git push origin backfill/master
68
+
69
+
- name: Create backfill pull request to develop branch
70
+
uses: thomaseizinger/create-pull-request@1.4.0
71
+
with:
72
+
github_token: ${{ secrets.ACTIONS_NICHOLAS_PAT }}
73
+
head: backfill/master
74
+
base: develop
75
+
draft: true
76
+
title: Backfill ${{ github.event.pull_request.base.ref }} branch to develop branch
77
+
body: |
78
+
Hi @${{ github.actor }}!
79
+
80
+
This PR was created in response to a trigger of the release workflow here: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}.
81
+
Following a release, this is a backfill from the main branch to the develop branch.
0 commit comments