From 78dba156787d5d32ef354b588cef97a79c8e6c7e Mon Sep 17 00:00:00 2001 From: Antonin Bas Date: Tue, 3 Sep 2024 14:43:04 -0700 Subject: [PATCH] Fix some if conditions in Github workflows Two shell if conditions in .github/workflows/build.yml were not valid syntactically. As a result, the "latest" images for the Antrea Agent and Controller were not updated for almost 2 months (for the amd64 arch). Signed-off-by: Antonin Bas --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e5e26d2fcbf..a022bce3d63 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: show-progress: false - name: Checking if image needs to be pushed run: | - if [ ${{ github.repository }} == 'antrea-io/antrea' && ${{ github.event_name }} == 'push' && ${{ github.ref }} == 'refs/heads/main' ]; then + if [ "${{ github.repository }}" == "antrea-io/antrea" ] && [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref }}" == "refs/heads/main" ]; then echo "push_needed=true" >> $GITHUB_ENV echo "docker_driver=docker-container" >> $GITHUB_ENV else @@ -90,7 +90,7 @@ jobs: show-progress: false - name: Checking if image needs to be pushed run: | - if [ ${{ github.repository }} == 'antrea-io/antrea' && ${{ github.event_name }} == 'push' && ${{ github.ref }} == 'refs/heads/main' ]; then + if [ "${{ github.repository }}" == "antrea-io/antrea" ] && [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref }}" == "refs/heads/main" ]; then echo "push_needed=true" >> $GITHUB_ENV echo "docker_driver=docker-container" >> $GITHUB_ENV else