Skip to content

Commit f6e3f4c

Browse files
committed
fix: Updates conditional check for approve-and-merge to only run if the release workflow triggered the event.
1 parent 655d789 commit f6e3f4c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,14 @@ jobs:
107107
108108
approve-and-merge:
109109
runs-on: ubuntu-latest
110-
if: ${{ github.actor == 'googlemaps-bot[bot]' }}
110+
if: ${{ github.event_name == 'workflow_dispatch' && github.actor == 'googlemaps-bot[bot]' }}
111111
env:
112112
PR_URL: ${{ github.event.pull_request.html_url }}
113113
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114114
steps:
115115
- name: Checkout code
116116
uses: actions/checkout@v3
117117

118-
- name: Debug github.ref
119-
run: echo "github.ref is ${{ github.ref }}"
120-
121118
- name: Create Pull Request
122119
id: cpr
123120
run: |

0 commit comments

Comments
 (0)