-
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.5 KB
/
update-dependabot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: ' 🤖 Update Dependabot'
on:
workflow_dispatch:
inputs:
base:
description: The Base Ref to apply the diff
required: false
default: 'main'
push:
branches:
- main
paths:
- '.github/**'
schedule:
- cron: '0 12 * * *'
permissions:
contents: read
jobs:
update-dependabot:
runs-on: ubuntu-latest
env:
NEW_BRANCH: update-dependabot-${{ inputs.base || 'main' }}
REF_BRANCH: ${{ inputs.base || 'main' }}
PR_TYPE: ci
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ env.REF_BRANCH }}
- name: Setup
uses: ./.github/actions/setup
- name: Run Action
id: dependabot
uses: streetsidesoftware/actions/public/update-dependabot-github-actions@v1
with:
prefix: ci
- name: Echo Result
env:
SUMMARY: ${{ steps.dependabot.outputs.summary }}
run: |
echo "$SUMMARY"
- name: PR
uses: streetsidesoftware/actions/.github/actions/pr@v1
with:
commit-message: '${{ env.PR_TYPE }}: Workflow Bot -- Update dependabot.yml'
branch: ${{ env.NEW_BRANCH }}
base: ${{ env.REF_BRANCH }}
title: '${{ env.PR_TYPE }}: Workflow Bot -- Update dependabot.yml (${{ env.REF_BRANCH }})'
body: ${{ steps.dependabot.outputs.summary }}
app_id: ${{ secrets.AUTOMATION_APP_ID }}
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}