feat: configure dependabot #1
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: Add ok-to-test label for dependabot PRs | |
on: pull_request | |
jobs: | |
dependabot: | |
runs-on: ubuntu-latest | |
if: github.actor == 'dependabot[bot]' | |
steps: | |
# fetch informations about PR | |
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#label-a-pull-request | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/fetch-metadata@v1 | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Add a label ok-to-test to dependabot PRs | |
run: gh pr edit "$PR_URL" --add-label "ok-to-test" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} |