Skip to content

Commit

Permalink
[chore] enable tidy workflow (open-telemetry#29335)
Browse files Browse the repository at this point in the history
This will run go mod tidy on PRs created by renovatebot

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten authored and RoryCrispin committed Nov 24, 2023
1 parent d81e5e8 commit 3abba64
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/tidy-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,13 @@ env:

jobs:
setup-environment:
# disabling until permission issues is resolved
# see: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/22953
if: ${{ false }}
timeout-minutes: 30
runs-on: ubuntu-latest
# if: ${{ contains(github.event.pull_request.labels.*.name, 'dependencies') }}
if: ${{ contains(github.event.pull_request.labels.*.name, 'renovatebot') }}
steps:
- uses: actions/checkout@v4
with:
repository: "renovate-bot/open-telemetry-_-opentelemetry-collector-contrib"
ref: ${{ github.head_ref }}
token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
- uses: actions/setup-go@v4
with:
go-version: ~1.20.11
Expand Down Expand Up @@ -52,3 +47,6 @@ jobs:
git diff --exit-code || (git add . && git commit -m "go mod tidy" && git push)
env:
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: renovatebot

0 comments on commit 3abba64

Please sign in to comment.