Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 9 additions & 25 deletions .github/workflows/dependabot-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,21 @@ name: Dependabot Approve
on:
workflow_dispatch:
schedule:
# Run merges daily at 9am UTC
- cron: "0 9 * * Mon"
# Notify supports for blocked PRs only monday 10am UTC
- cron: "0 10 * * Mon"
- cron: 0 9 * * Mon
- cron: 0 10 * * Mon

jobs:
auto-approve:
name: Approve PR
uses: getyourguide/actions/.github/workflows/dependabot-approve.yml@main
with:
# The target input allows to select which updates to auto approve.
# Values for increment: patch | minor | major
# Values for dependency type: all | development | production
# In this case we will auto-approve all dependencies, except major updates for
# production dependencies which should be manually approved
targets: patch:all,minor:all,major:development
pr-url: ${{ github.event.pull_request.html_url }}

pr-url: ${{ github.event.pull_request.html_url }}
auto-merge:
name: Auto merge
runs-on: [node-small, self-hosted]

steps:
- uses: actions/checkout@v4
- name: Merge PRs
uses: getyourguide/actions/dependabot-merge@main
with:
github_token: ${{ secrets.GYGROBOT_PR_TOKEN }}
slack_channel: "#mlplatform-alerts"
slack_dependabot_token: ${{ secrets.SLACK_DEPENDABOT_TOKEN }}
slack_ping_support: true
# Report merges daily, and only once a week report blocked PRs (ping support)
# Hide blocked PRs from the daily execution
hide_report_sections: ${{ (github.event.schedule == '0 9 * * Mon-Fri' && 'blocked,pending-approval') || ''}}
uses: getyourguide/actions/.github/workflows/dependabot-merge.yml@main
with:
slack_channel: '#mlplatform-alerts'
slack_ping_support: true
hide_report_sections: ${{ (github.event.schedule == '0 9 * * Mon-Fri' && 'blocked,pending-approval') || ''}}
secrets: inherit
Loading