Skip to content

Dependabot Batcher Scheduled #148

Dependabot Batcher Scheduled

Dependabot Batcher Scheduled #148

name: Dependabot Batcher Scheduled
on:
schedule:
- cron: '0 9 * * 1,3'
jobs:
# Batches Dependabot PRs into one by merging them into a combined branch, then raising a new PR
dependabot-batcher:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.DEPENDABOT_BATCH_TOKEN }}
- uses: actions/setup-node@v3.1.1
with:
node-version-file: '.nvmrc'
- name: 'Combine Dependabot PRs'
uses: actions/github-script@v6
with:
github-token: ${{ secrets.DEPENDABOT_BATCH_TOKEN }}
script: |
const combineDependabotPrs = require('./.github/workflow-scripts/combine-dependabot-prs.js');
return await combineDependabotPrs({
github,
context,
});