Dependabot Batcher Scheduled #148
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: 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, | |
}); |