Skip to content

Commit

Permalink
update workflows (#114)
Browse files Browse the repository at this point in the history
* Update tidy.yml

* Update tidy.yml
  • Loading branch information
gh88562 authored Feb 16, 2025
1 parent cf8224c commit 0614b2c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0614b2c

Please sign in to comment.