Skip to content

Commit 6c031ac

Browse files
authored
Tidy up examples slightly (#611)
Tidies up the examples slightly
1 parent 8a668d0 commit 6c031ac

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,9 @@ jobs:
153153
uses: dependabot/fetch-metadata@v2
154154
- name: Enable auto-merge for Dependabot PRs
155155
if: ${{contains(steps.dependabot-metadata.outputs.dependency-names, 'rails') && steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch'}}
156-
run: gh pr merge --auto --merge "$PR_URL"
156+
run: gh pr merge --auto --merge "${{github.event.pull_request.html_url}}"
157157
env:
158-
PR_URL: ${{github.event.pull_request.html_url}}
159-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
158+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
160159
```
161160
162161
### Labelling
@@ -182,9 +181,8 @@ jobs:
182181
uses: dependabot/fetch-metadata@v2
183182
- name: Add a label for all production dependencies
184183
if: ${{ steps.dependabot-metadata.outputs.dependency-type == 'direct:production' }}
185-
run: gh pr edit "$PR_URL" --add-label "production"
184+
run: gh pr edit "${{github.event.pull_request.html_url}}" --add-label "production"
186185
env:
187-
PR_URL: ${{github.event.pull_request.html_url}}
188186
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
189187
```
190188

0 commit comments

Comments
 (0)