WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

🤖 Update Dependabot #833

🤖 Update Dependabot

🤖 Update Dependabot #833

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
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
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@v6
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: Create PR
if: github.ref_name == 'main'
uses: peter-evans/create-pull-request@v7
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 }}
token: ${{ secrets.GITHUB_TOKEN }}