From aa135fb4db445d8bc2030092ee51e6a32b825a56 Mon Sep 17 00:00:00 2001 From: Taner Topal Date: Sun, 8 Oct 2023 16:04:31 -0700 Subject: [PATCH] Fix issue with if condition in GitHub action (#2490) --- .github/workflows/docs.yml | 2 +- .github/workflows/e2e.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index da3a67fc155e..f8efc09e5120 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -32,7 +32,7 @@ jobs: - name: Build docs run: ./dev/build-docs.sh - name: Deploy docs - if: github.ref == 'refs/heads/main' && github.repository == 'adap/flower' && ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ github.ref == 'refs/heads/main' && github.repository == 'adap/flower' && !github.event.pull_request.head.repo.fork }} env: AWS_DEFAULT_REGION: ${{ secrets. AWS_DEFAULT_REGION }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 3a58503ea66e..4168f5938f42 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -30,7 +30,7 @@ jobs: - name: Test wheel run: ./dev/test-wheel.sh - name: Upload wheel - if: github.repository == 'adap/flower' && ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ github.repository == 'adap/flower' && !github.event.pull_request.head.repo.fork }} id: upload env: AWS_DEFAULT_REGION: ${{ secrets. AWS_DEFAULT_REGION }}