Skip to content

Commit

Permalink
Update tidy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Boten authored May 12, 2023
1 parent a586522 commit b4a838e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
branch: ${{ github.head_ref }}
ref: ${{ github.head_ref }}
- uses: actions/setup-go@v4
with:
go-version: 1.19
Expand All @@ -34,10 +34,7 @@ jobs:
- name: go mod tidy
run: |
make gotidy
git config user.name opentelemetrybot
git config user.email [email protected]
git checkout ${{ github.head_ref }}
echo "git diff --exit-code || (git add . && git commit -m \"go mod tidy\" && git push origin ${{ github.head_ref }})"
git diff --exit-code || (git add . && git commit -m "go mod tidy" && git push origin ${{ github.head_ref }})
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
git config user.name github-actions
git config user.email [email protected]
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)

0 comments on commit b4a838e

Please sign in to comment.