Skip to content

Commit 7068258

Browse files
authored
Merge pull request #6655 from Expensify/andrew-sign-cp
2 parents 5396676 + 362a059 commit 7068258

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/cherryPick.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,14 @@ jobs:
7070
token: ${{ secrets.OS_BOTIFY_TOKEN }}
7171

7272
- name: Decrypt Botify GPG key
73-
if: github.actor == 'OSBotify'
7473
run: cd .github/workflows && gpg --quiet --batch --yes --decrypt --passphrase="$LARGE_SECRET_PASSPHRASE" --output OSBotify-private-key.asc OSBotify-private-key.asc.gpg
7574
env:
7675
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }}
7776

7877
- name: Import Botify GPG Key
79-
if: github.actor == 'OSBotify'
8078
run: cd .github/workflows && gpg --import OSBotify-private-key.asc
8179

8280
- name: Set up git for Botify
83-
if: github.actor == 'OSBotify'
8481
run: |
8582
git config user.signingkey DBF63700F60F5530
8683
git config commit.gpgsign true
@@ -89,7 +86,6 @@ jobs:
8986
9087
- name: Create branch for new pull request
9188
run: |
92-
git config user.name ${{ github.actor }}
9389
git checkout -b ${{ github.actor }}-cherry-pick-staging-${{ github.event.inputs.PULL_REQUEST_NUMBER }}
9490
git push --set-upstream origin ${{ github.actor }}-cherry-pick-staging-${{ github.event.inputs.PULL_REQUEST_NUMBER }}
9591
@@ -122,13 +118,13 @@ jobs:
122118
- name: Cherry-pick the version-bump to new branch
123119
run: |
124120
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 }}
126122
127123
- name: Cherry-pick the merge commit of target PR to new branch
128124
id: cherryPick
129125
run: |
130126
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
132128
echo "🎉 No conflicts! CP was a success, PR can be automerged 🎉"
133129
echo "::set-output name=SHOULD_AUTOMERGE::true"
134130
else

0 commit comments

Comments
 (0)