build(deps): bump github.com/elastic/beats/v7 #32
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
--- | |
# Dependabot Pull Requests are not updating the NOTICE.txt file, which causes the lint job to fail. | |
# This workflow will checkout the dependabot PR, update the NOTICE.txt file, and push the changes back to the PR. | |
name: update-dependabot-pr | |
on: | |
push: | |
branches: | |
- dependabot/go_modules/** | |
paths-ignore: | |
- NOTICE.txt | |
permissions: | |
contents: read | |
jobs: | |
update-dependabot-pr: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Update NOTICE.txt | |
run: make notice | |
- run: | | |
git config --global user.name 'dependabot[bot]' | |
git config --global user.email 'dependabot[bot]@users.noreply.github.com' | |
git diff --exit-code NOTICE.txt || (git add NOTICE.txt && git commit -am "Update NOTICE.txt") | |
git push | |