Skip to content

Generate dependabot file #97

Generate dependabot file

Generate dependabot file #97

name: Generate dependabot file
on:
schedule:
- cron: "40 22 * * 6"
push:
branches:
- main
paths:
- '.github/workflows/generate-dependabot-file.yml'
- 'scripts/generate-dependabot-file.sh'
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
create-and-commit-dependabot-file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Generate file
run: bash ./scripts/generate-dependabot-file.sh
- name: Commit changes to GitHub
run: bash ./scripts/git-setup.sh
- run: bash ./scripts/git-commit.sh .github
- run: bash ./scripts/git-pull-request.sh dependabot
env:
SECRET: ${{ secrets.GITHUB_TOKEN }}
- uses: 8398a7/action-slack@fbd6aa58ba854a740e11a35d0df80cb5d12101d8 # v3.15.1
name: Slack failure notification
with:
status: ${{ job.status }}
fields: workflow,job,repo,commit,message
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: ${{ failure() }}