From 3abba64c93b8c4189783b1d0fd981e1519dbd678 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Fri, 17 Nov 2023 12:25:15 -0800 Subject: [PATCH] [chore] enable tidy workflow (#29335) This will run go mod tidy on PRs created by renovatebot Signed-off-by: Alex Boten --- .github/workflows/tidy-dependencies.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tidy-dependencies.yml b/.github/workflows/tidy-dependencies.yml index 04c874d40fd8..29931ed2a91b 100644 --- a/.github/workflows/tidy-dependencies.yml +++ b/.github/workflows/tidy-dependencies.yml @@ -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 @@ -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