From ffd1a9dd620c8e984c9accde1ad1f7a3564f0565 Mon Sep 17 00:00:00 2001 From: Janno Kusman Date: Fri, 20 Sep 2024 17:37:23 +0300 Subject: [PATCH] =?UTF-8?q?fix=20sh=20if=20statement=20=F0=9F=A4=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/maven.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 4f9a329..4d285a8 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -34,16 +34,17 @@ jobs: is_fork: ${{ steps.is_fork.outputs.is_fork }} steps: + # if pull_request and fork then finds base repo - id: base_repo run: | - if [ ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }} ]; then + if [ "${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }}" = "true" ]; then echo "name=${{github.event.pull_request.base.repo.full_name}}" >> "$GITHUB_OUTPUT" else echo "name=${{ github.event.repo.name }}" >> "$GITHUB_OUTPUT" fi - id: is_fork run: | - if [ ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }} ]; then + if [ "${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }}" = "true" ]; then echo "is_fork=true" >> "$GITHUB_OUTPUT" else echo "is_fork=false" >> "$GITHUB_OUTPUT"