update workflows (#114)

* Update tidy.yml

* Update tidy.yml
This commit is contained in:
gh88562 authored and GitHub committed 2025-02-16 10:49:28 +08:00
1 parent cf8224cbd6
commit 0614b2c9ad
1 file changed
+8 -2
+8 -2
View File
@@ -36,8 +36,12 @@ jobs:
id: compare-tags
run: |
if [ "$LATEST_TAG_NAME" != "$CURRENT_TAG_NAME" ]; then
echo "Tags are different. Updating..."
echo "needs_update=true" >> $GITHUB_ENV
if [ "$(printf '%s\n' "$LATEST_TAG_NAME" "$CURRENT_TAG_NAME" | sort -V | tail -n1)" == "$CURRENT_TAG_NAME" ]; then
echo "Upstream LATEST_TAG_NAME less than the CURRENT_TAG_NAME, no update needed."
else
echo "Tags are different. Updating..."
echo "needs_update=true" >> $GITHUB_ENV
fi
else
echo "Tags are the same. No update needed."
echo "needs_update=false" >> $GITHUB_ENV
@@ -53,6 +57,8 @@ jobs:
if: env.needs_update == 'true'
run: |
go get github.com/xtls/xray-core@${{ env.LATEST_TAG_SHA }}
go get gvisor.dev/gvisor@go
go get -u
go mod tidy -v
git diff