This reverts commit 0614b2c9ad.
This commit is contained in:
1 parent
19486878e5
commit
052a33d204
1 file changed
+2
-8
@@ -36,12 +36,8 @@ jobs:
|
||||
id: compare-tags
|
||||
run: |
|
||||
if [ "$LATEST_TAG_NAME" != "$CURRENT_TAG_NAME" ]; then
|
||||
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
|
||||
echo "Tags are different. Updating..."
|
||||
echo "needs_update=true" >> $GITHUB_ENV
|
||||
else
|
||||
echo "Tags are the same. No update needed."
|
||||
echo "needs_update=false" >> $GITHUB_ENV
|
||||
@@ -57,8 +53,6 @@ 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
|
||||
|
||||
|
||||
Reference in new issue
Block a user