Skip to content

Revert most of cdebe0bd661ba9e0b1b8e6a03af38d88fab57f27 #574

Revert most of cdebe0bd661ba9e0b1b8e6a03af38d88fab57f27

Revert most of cdebe0bd661ba9e0b1b8e6a03af38d88fab57f27 #574

Workflow file for this run

name: Dependabot workflow
on: pull_request
jobs:
dependabot:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check updated files
# smoelius: Dependabot should update only manifest and/or lockfiles. Hard error otherwise.
run: |
git diff --name-only ${{ github.event.pull_request.base.sha }} | grep -m 1 .
! git diff --name-only ${{ github.event.pull_request.base.sha }} | grep -v '^\.github/workflows/\|\(^\|/\)Cargo\.\(lock\|toml\)$'
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.DEPENDABOT_REPO_TOKEN }}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '@dependabot merge'
})