Skip to content

Commit

Permalink
Fix file rename in e2e test script, fix release version check in gith…
Browse files Browse the repository at this point in the history
…ub-release script (#634)

Co-authored-by: chaoyux <[email protected]>
  • Loading branch information
cxiang07 and chaoyux authored May 8, 2024
1 parent 1862bef commit 33b2c43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
kubectl apply -f config/crds/bases/k8s-gateway-v1.0.0.yaml
- name: Create Lattice GatewayClass
run: |
kubectl apply -f examples/gatewayclass.yaml
kubectl apply -f files/controller-installation/gatewayclass.yaml
- name: Run test
run: |
make e2e-test
Expand Down
4 changes: 2 additions & 2 deletions scripts/github-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ if git rev-parse --verify release-$RELEASE_VERSION >/dev/null 2>&1; then
git branch -D release-$RELEASE_VERSION
fi

if git ls-remote --tags origin | grep -q "refs/tags/$RELEASE_VERSION"; then
if git ls-remote --tags origin | grep -q "refs/tags/$RELEASE_VERSION$"; then
echo "Tag '$RELEASE_VERSION' exists in remote, you should manually delete it from github"
exit 1
fi

if git ls-remote --heads origin | grep -q "refs/heads/release-$RELEASE_VERSION"; then
if git ls-remote --heads origin | grep -q "refs/heads/release-$RELEASE_VERSION$"; then
echo "Branch 'release-$RELEASE_VERSION' exists in remote, you should manually delete it from github"
exit 1
fi
Expand Down

0 comments on commit 33b2c43

Please sign in to comment.