Skip to content

Commit

Permalink
chore: add PAT to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Leaseweb CI committed Dec 20, 2024
1 parent b1f3052 commit fdb74a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fdb74a0

Please sign in to comment.