mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-08-27 13:26:55 +00:00
Update release.yml
This commit is contained in:
parent
cb539ff767
commit
394968753e
1 changed files with 12 additions and 0 deletions
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
@ -28,8 +28,20 @@ jobs:
|
|||
|
||||
- name: Force update Go modules
|
||||
run: |
|
||||
go mod init || true
|
||||
go mod tidy
|
||||
go mod download
|
||||
|
||||
- name: Commit go.sum if missing
|
||||
run: |
|
||||
if [ ! -f go.sum ]; then
|
||||
go mod tidy
|
||||
git config --global user.email "github-actions@github.com"
|
||||
git config --global user.name "GitHub Actions"
|
||||
git add go.sum
|
||||
git commit -m "Add missing go.sum"
|
||||
git push origin main || echo "No changes to push"
|
||||
fi
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
|
|
Loading…
Reference in a new issue