Skip to content

Commit c255758

Browse files
authored
Merge pull request #23068 from github/repo-sync
repo sync
2 parents 6cb54e7 + 6366cf9 commit c255758

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,14 @@ jobs:
179179
if: ${{ github.actor == 'dependabot[bot]' }}
180180
steps:
181181
- name: Dependabot metadata
182-
id: metadata
182+
id: dependabot-metadata
183183
uses: dependabot/[email protected]
184184
with:
185185
github-token: "${{ secrets.GITHUB_TOKEN }}"
186186
# The following properties are now available:
187-
# - steps.metadata.outputs.dependency-names
188-
# - steps.metadata.outputs.dependency-type
189-
# - steps.metadata.outputs.update-type
187+
# - steps.dependabot-metadata.outputs.dependency-names
188+
# - steps.dependabot-metadata.outputs.dependency-type
189+
# - steps.dependabot-metadata.outputs.update-type
190190
```
191191
{% endraw %}
192192

@@ -214,12 +214,12 @@ jobs:
214214
if: ${{ github.actor == 'dependabot[bot]' }}
215215
steps:
216216
- name: Dependabot metadata
217-
id: metadata
217+
id: dependabot-metadata
218218
uses: dependabot/[email protected]
219219
with:
220220
github-token: "${{ secrets.GITHUB_TOKEN }}"
221221
- name: Add a label for all production dependencies
222-
if: ${{ steps.metadata.outputs.dependency-type == 'direct:production' }}
222+
if: ${{ steps.dependabot-metadata.outputs.dependency-type == 'direct:production' }}
223223
run: gh pr edit "$PR_URL" --add-label "production"
224224
env:
225225
PR_URL: ${{github.event.pull_request.html_url}}
@@ -244,7 +244,7 @@ jobs:
244244
if: ${{ github.actor == 'dependabot[bot]' }}
245245
steps:
246246
- name: Dependabot metadata
247-
id: metadata
247+
id: dependabot-metadata
248248
uses: dependabot/[email protected]
249249
with:
250250
github-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -277,12 +277,12 @@ jobs:
277277
if: ${{ github.actor == 'dependabot[bot]' }}
278278
steps:
279279
- name: Dependabot metadata
280-
id: metadata
280+
id: dependabot-metadata
281281
uses: dependabot/[email protected]
282282
with:
283283
github-token: "${{ secrets.GITHUB_TOKEN }}"
284284
- name: Enable auto-merge for Dependabot PRs
285-
if: ${{contains(steps.metadata.outputs.dependency-names, 'my-dependency') && steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
285+
if: ${{contains(steps.dependabot-metadata.outputs.dependency-names, 'my-dependency') && steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch'}}
286286
run: gh pr merge --auto --merge "$PR_URL"
287287
env:
288288
PR_URL: ${{github.event.pull_request.html_url}}

0 commit comments

Comments
 (0)