Skip to content

Commit

Permalink
update github workflow for handling dependabot version update pull re…
Browse files Browse the repository at this point in the history
…quests (#2392)

* update github workflow for handling dependabot version update pull requests

* update name
  • Loading branch information
rtpascual authored Jan 2, 2025
1 parent 9baf6e9 commit 38b5da3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/health_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ jobs:
run: |
mkdir api-validation-projects
npx tsx scripts/check_api_changes.ts base-branch-content api-validation-projects
generate_changeset:
handle_dependabot_version_update:
if: github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]'
runs-on: ubuntu-latest
needs:
Expand All @@ -284,16 +284,18 @@ jobs:
with:
node-version: 18
cdk-version: ${{ needs.resolve_inputs.outputs.cdk_version }}
- name: Generate changesets for packages with version updates
- name: Handle Dependabot version update pull request
run: npx tsx scripts/dependabot_handle_version_update.ts "$BASE_SHA" "$HEAD_SHA"
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
# The dependabot_handler_version_update script needs to add the 'run-e2e' pull request label
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
do_include_e2e:
needs:
- install
- resolve_inputs
- generate_changeset
- handle_dependabot_version_update
runs-on: ubuntu-latest
permissions:
# This is required so that the step can read the labels on the pull request
Expand Down

0 comments on commit 38b5da3

Please sign in to comment.