Skip to content

Commit

Permalink
chore: add PR to keep actions up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Mar 17, 2024
1 parent 4648c35 commit 5909f69
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/update-dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: ' 🤖 Update Dependabot'

on:
workflow_dispatch:
inputs:
base:
description: The Base Ref to apply the diff
required: false
default: 'main'

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: Run Action
id: dependabot
uses: streetsidesoftware/actions/public/update-dependabot-github-actions@v1
with:
prefix: ci

- name: Echo Result
uses: streetsidesoftware/actions/public/summary@v1
with:
text: ${{ steps.dependabot.outputs.summary }}

- name: PR
uses: ./.github/actions/pr
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 }}

0 comments on commit 5909f69

Please sign in to comment.