Skip to content

Commit 0f1834d

Browse files
authored
fix: Update release.yml
Two things: - Changes conditional approve and merge step to check for googlemaps-bot. - Adds debug step to get ref just for giggles.
1 parent 882248f commit 0f1834d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,17 @@ jobs:
102102
103103
approve-and-merge:
104104
runs-on: ubuntu-latest
105-
if: ${{ github.ref == 'refs/heads/dist' }}
105+
if: ${{ github.actor == 'googlemaps-bot[bot]' }}
106106
env:
107107
PR_URL: ${{ github.event.pull_request.html_url }}
108108
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109109
steps:
110110
- name: Checkout code
111111
uses: actions/checkout@v3
112112

113+
- name: Debug github.ref
114+
run: echo "github.ref is ${{ github.ref }}"
115+
113116
- name: Create Pull Request
114117
id: cpr
115118
run: |

0 commit comments

Comments
 (0)