Merge Dependabot PRs #343
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Merge Dependabot PRs" | |
on: | |
schedule: | |
# 8:30am UTC, Mon-Fri. There is also logic within the script to prevent running on bank holidays. | |
- cron: '30 8 * * 1-5' | |
workflow_dispatch: {} | |
jobs: | |
merge-dependabot-prs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Run Dependabot-merger script | |
env: | |
AUTO_MERGE_TOKEN: ${{ secrets.AUTO_MERGE_TOKEN }} | |
run: | | |
bundle exec ruby bin/merge_dependabot_prs.rb |