-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Leaseweb CI
committed
Dec 20, 2024
1 parent
b1f3052
commit fdb74a0
Showing
1 changed file
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,13 @@ jobs: | |
|
||
# Step 3: Run go mod tidy and commit changes | ||
- name: Run go mod tidy | ||
env: | ||
TOKEN: ${{ secrets.PAT_TOKEN }} | ||
run: | | ||
go mod tidy | ||
git config --global user.name "majidkarimizadeh" | ||
git config --global user.email "[email protected]" | ||
git remote set-url origin https://x-access-token:${TOKEN}@github.com/leaseweb/leaseweb-go-sdk.git | ||
git diff --quiet || ( | ||
git add go.mod go.sum | ||
git commit -m "chore: tidy go.mod and go.sum" | ||
|