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
Create PR from tag backmerge branch to develop (or reuse if exists)
67
+
run: |
68
+
set -euo pipefail
69
+
70
+
TITLE="Backmerge: ${{ steps.vars.outputs.tag }} into develop"
71
+
72
+
BODY="⚠️ This PR is created automatically for backmerge of a new release tag commit \`${{ steps.vars.outputs.tag }}\` into \`develop\`.
73
+
74
+
It is labeled '[maintainer] auto-pull-request' and is excluded from release notes and version bump logic."
75
+
76
+
if gh pr view --repo "${{ github.repository }}" --head "${{ steps.vars.outputs.branch }}" >/dev/null 2>&1; then
77
+
echo "PR already exists for head=${{ steps.vars.outputs.branch }}"
78
+
else
79
+
gh pr create \
80
+
--repo "${{ github.repository }}" \
81
+
--base develop \
82
+
--head "${{ steps.vars.outputs.branch }}" \
83
+
--title "$TITLE" \
84
+
--label "[maintainer] auto-pull-request" \
85
+
--body "$BODY"
86
+
fi
87
+
env:
88
+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
32
89
33
-
- name: Create PR from ${{ env.DEFAULT_BRANCH }} to develop
90
+
- name: Enable auto-merge using MERGE COMMIT
34
91
run: |
35
-
gh pr create \
36
-
--base develop \
37
-
--head ${{ env.DEFAULT_BRANCH }} \
38
-
--title "Backmerge: ${{ env.DEFAULT_BRANCH }} into develop" \
39
-
--label "[maintainer] auto-pull-request" \
40
-
--body "⚠️ This PR is created automatically for backmerges changes from \`${{ env.DEFAULT_BRANCH }}\` into \`develop\`, following a new release tag push.
41
-
42
-
It is labeled \`[maintainer] auto-pull-request\` and is excluded from release notes and version bump logic."
0 commit comments