build(deps): bump github.com/elastic/go-docappender/v2 #779
Workflow file for this run
This file contains hidden or 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
| # Follow-on actions relating to dependabot PRs. In elastic/elastic-agent, any changes to | |
| # dependencies contained in go.mod requires the change to be reflected in the | |
| # NOTICE.txt and NOTICE-fips.txt files. When dependabot creates a branch for a go_modules | |
| # change this will update the NOTICE.txt and NOTICE-fips files for that change. | |
| name: post-dependabot | |
| on: | |
| push: | |
| branches: | |
| - "dependabot/go_modules/**" | |
| jobs: | |
| update-notice: | |
| permissions: | |
| # Allow job to write to the branch. | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: .go-version | |
| - name: Install mage | |
| uses: magefile/mage-action@6f50bbb8ea47d56e62dee92392788acbc8192d0b # v3.1.0 | |
| with: | |
| version: v1.14.0 | |
| install-only: true | |
| - name: update NOTICE.txt and NOTICE-fips.txt | |
| run: make notice | |
| - name: check for modified NOTICE.txt or NOTICE-fips.txt | |
| id: notice-check | |
| run: | | |
| if git diff --quiet HEAD -- NOTICE*.txt; then | |
| echo "modified=false" >> $GITHUB_OUTPUT | |
| else | |
| echo "modified=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: commit NOTICE.txt and/or NOTICE-fips.txt | |
| if: steps.notice-check.outputs.modified == 'true' | |
| run: | | |
| git config --global user.name 'dependabot[bot]' | |
| git config --global user.email 'dependabot[bot]@users.noreply.github.com' | |
| git add NOTICE*.txt | |
| git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | |
| git commit -m "Update NOTICE.txt and/or NOTICE-fips.txt" | |
| git push | |
| - name: update otel README.md | |
| run: mage otel:readme | |
| - name: check for modified otel README.md | |
| id: otel-readme-check | |
| run: | | |
| if git diff --quiet HEAD -- internal/pkg/otel/README.md; then | |
| echo "modified=false" >> $GITHUB_OUTPUT | |
| else | |
| echo "modified=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: commit otel README.md | |
| if: steps.otel-readme-check.outputs.modified == 'true' | |
| run: | | |
| git config --global user.name 'dependabot[bot]' | |
| git config --global user.email 'dependabot[bot]@users.noreply.github.com' | |
| git add internal/pkg/otel/README.md | |
| git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | |
| git commit -m "Update otel README.md" | |
| git push |