Skip to content

Commit 38b5da3

Browse files
authored
update github workflow for handling dependabot version update pull requests (#2392)
* update github workflow for handling dependabot version update pull requests * update name
1 parent 9baf6e9 commit 38b5da3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/health_checks.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ jobs:
269269
run: |
270270
mkdir api-validation-projects
271271
npx tsx scripts/check_api_changes.ts base-branch-content api-validation-projects
272-
generate_changeset:
272+
handle_dependabot_version_update:
273273
if: github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]'
274274
runs-on: ubuntu-latest
275275
needs:
@@ -284,16 +284,18 @@ jobs:
284284
with:
285285
node-version: 18
286286
cdk-version: ${{ needs.resolve_inputs.outputs.cdk_version }}
287-
- name: Generate changesets for packages with version updates
287+
- name: Handle Dependabot version update pull request
288288
run: npx tsx scripts/dependabot_handle_version_update.ts "$BASE_SHA" "$HEAD_SHA"
289289
env:
290290
BASE_SHA: ${{ github.event.pull_request.base.sha }}
291291
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
292+
# The dependabot_handler_version_update script needs to add the 'run-e2e' pull request label
293+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
292294
do_include_e2e:
293295
needs:
294296
- install
295297
- resolve_inputs
296-
- generate_changeset
298+
- handle_dependabot_version_update
297299
runs-on: ubuntu-latest
298300
permissions:
299301
# This is required so that the step can read the labels on the pull request

0 commit comments

Comments
 (0)