Make build_no_instrumentation_with_target
test slightly less confusing
#546
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.PR_GITHUB_TOKEN }} | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: '@dependabot merge' | |
}) |