build(deps): bump github.com/elastic/elastic-agent-system-metrics #829
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: set up git user | |
| uses: elastic/oblt-actions/git/setup@v1 | |
| with: | |
| username: 'dependabot[bot]' | |
| email: 'dependabot[bot]@users.noreply.github.com' | |
| - name: Install mage | |
| uses: magefile/mage-action@6f50bbb8ea47d56e62dee92392788acbc8192d0b # v3.1.0 | |
| with: | |
| version: v1.14.0 | |
| install-only: true | |
| - name: Update EDOT go.mod if necessary | |
| run: go mod tidy | |
| - name: check for modified edot go.mod | |
| id: edot-check | |
| run: | | |
| if git diff --quiet HEAD -- internal/edot/go.mod; then | |
| echo "modified=false" >> $GITHUB_OUTPUT | |
| else | |
| echo "modified=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: commit changed files | |
| if: steps.edot-check.outputs.modified == 'true' | |
| run: | | |
| git add internal/edot/go.mod internal/edot/go.sum | |
| git commit -m "Update EDOT go.mod" | |
| - 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 add NOTICE*.txt | |
| git commit -m "Update NOTICE.txt and/or NOTICE-fips.txt" | |
| - 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 add internal/pkg/otel/README.md | |
| git commit -m "Update otel README.md" | |
| - name: Push added commits | |
| run: git push |