@@ -70,17 +70,14 @@ jobs:
70
70
token : ${{ secrets.OS_BOTIFY_TOKEN }}
71
71
72
72
- name : Decrypt Botify GPG key
73
- if : github.actor == 'OSBotify'
74
73
run : cd .github/workflows && gpg --quiet --batch --yes --decrypt --passphrase="$LARGE_SECRET_PASSPHRASE" --output OSBotify-private-key.asc OSBotify-private-key.asc.gpg
75
74
env :
76
75
LARGE_SECRET_PASSPHRASE : ${{ secrets.LARGE_SECRET_PASSPHRASE }}
77
76
78
77
- name : Import Botify GPG Key
79
- if : github.actor == 'OSBotify'
80
78
run : cd .github/workflows && gpg --import OSBotify-private-key.asc
81
79
82
80
- name : Set up git for Botify
83
- if : github.actor == 'OSBotify'
84
81
run : |
85
82
git config user.signingkey DBF63700F60F5530
86
83
git config commit.gpgsign true
89
86
90
87
- name : Create branch for new pull request
91
88
run : |
92
- git config user.name ${{ github.actor }}
93
89
git checkout -b ${{ github.actor }}-cherry-pick-staging-${{ github.event.inputs.PULL_REQUEST_NUMBER }}
94
90
git push --set-upstream origin ${{ github.actor }}-cherry-pick-staging-${{ github.event.inputs.PULL_REQUEST_NUMBER }}
95
91
@@ -122,13 +118,13 @@ jobs:
122
118
- name : Cherry-pick the version-bump to new branch
123
119
run : |
124
120
git fetch
125
- git cherry-pick -x --mainline 1 --strategy=recursive -Xtheirs ${{ steps.getVersionBumpMergeCommit.outputs.MERGE_COMMIT_SHA }}
121
+ git cherry-pick -S - x --mainline 1 --strategy=recursive -Xtheirs ${{ steps.getVersionBumpMergeCommit.outputs.MERGE_COMMIT_SHA }}
126
122
127
123
- name : Cherry-pick the merge commit of target PR to new branch
128
124
id : cherryPick
129
125
run : |
130
126
echo "Attempting to cherry-pick ${{ steps.getCPMergeCommit.outputs.MERGE_COMMIT_SHA }}"
131
- if git cherry-pick -x --mainline 1 ${{ steps.getCPMergeCommit.outputs.MERGE_COMMIT_SHA }}; then
127
+ if git cherry-pick -S - x --mainline 1 ${{ steps.getCPMergeCommit.outputs.MERGE_COMMIT_SHA }}; then
132
128
echo "🎉 No conflicts! CP was a success, PR can be automerged 🎉"
133
129
echo "::set-output name=SHOULD_AUTOMERGE::true"
134
130
else
0 commit comments