diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml deleted file mode 100644 index 291c40b2..00000000 --- a/.github/workflows/dependabot.yml +++ /dev/null @@ -1,31 +0,0 @@ -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' - })