Skip to content

probation data-engineering terraform-backend #3175

probation data-engineering terraform-backend

probation data-engineering terraform-backend #3175

---
name: Dependabot Configuration Generator
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- main
permissions: read-all
jobs:
dependabot-configuration-generator:
name: Dependabot Configuration Generator
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
id: checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Run Dependabot Configuration Generator
id: run_dependabot_configuration_generator
run: |
bash scripts/dependabot/configuration-generator.sh
- name: Detect Changes in .github/dependabot.yml
id: detect_changes
run: |
git diff --quiet --exit-code .github/dependabot.yml
continue-on-error: true
- name: DEBUG
id: debug
run: |
git diff .github/dependabot.yml
echo "detect_changes_output ${{ steps.detect_changes.outcome }}"
- name: Commit Changes
id: commit_changes
uses: planetscale/ghcommit-action@88c53665a0c85bc370b410610f2bcf1979204651 # v0.1.45
with:
commit_message: "🤖 Update .github/dependabot.yml"
file_pattern: ".github/dependabot.yml"
repo: ${{ github.repository }}
branch: ${{ github.head_ref || github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.DATA_PLATFORM_ROBOT_TOKEN }}