Skip to content

Commit

Permalink
[chore] update tidy action (open-telemetry#22106)
Browse files Browse the repository at this point in the history
Configure the tidy action to commit the tidy change in the fork of the repository.
  • Loading branch information
Alex Boten committed May 19, 2023
1 parent 846c053 commit 1888025
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tidy-dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Project: Tidy"
on:
pull_request:
pull_request_target:
types: [labeled]
branches:
- main
Expand All @@ -13,7 +13,9 @@ jobs:
steps:
- uses: actions/checkout@v3
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.19
Expand All @@ -40,4 +42,4 @@ jobs:
echo "git diff --exit-code || (git add . && git commit -m \"go mod tidy\" && git push)"
git diff --exit-code || (git add . && git commit -m "go mod tidy" && git push)
env:
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
{
"matchManagers": ["gomod"],
"enabled": false
"matchUpdateTypes": ["minor", "major"]
}
],
"ignoreDeps": [
Expand Down

0 comments on commit 1888025

Please sign in to comment.