mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 01:34:01 +00:00
261dce259f
The environment needs to be specified to have access tot he GitHub App auth.
32 lines
1 KiB
YAML
32 lines
1 KiB
YAML
# This workflow combines all open Dependabot PRs into a single batched
|
|
# PR, links all the Dependabot PRs to the new one, and closes all the
|
|
# Dependabot PRs. The schedule is set to exactly 12 hours after the
|
|
# Dependabot schedule.
|
|
#
|
|
# All workflows that run on PR should be skipped for Dependabot PRs
|
|
# to prevent wasting CI cycles.
|
|
name: 'Dependabot Batcher'
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 21 * * 0' # At 9:00 PM every Sunday UTC
|
|
|
|
jobs:
|
|
dependabot-batcher:
|
|
name: 'Combine Dependabot PRs'
|
|
runs-on: ubuntu-latest
|
|
environment: dependabot-batcher
|
|
steps:
|
|
- name: Generate GitHub Token
|
|
id: generate_token
|
|
uses: tibdex/github-app-token@v1
|
|
with:
|
|
app_id: ${{ secrets.APP_ID }}
|
|
private_key: ${{ secrets.PRIVATE_KEY }}
|
|
|
|
- name: 'Dependabot Batcher'
|
|
uses: Legal-and-General/dependabot-batcher@v1.0.2
|
|
with:
|
|
token: ${{ steps.generate_token.outputs.token }} #required
|
|
baseBranchName: 'master'
|