diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4e16276f1..a39f88c90 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,7 @@ jobs: make_pr: ${{ steps.check.outputs.make_pr }} steps: - - name: Checkout + - name: đŸ“Ļ Checkout uses: actions/checkout@v4.2.2 with: fetch-depth: 0 @@ -215,6 +215,9 @@ jobs: runs-on: ubuntu-latest if: ${{ needs.info.outputs.make_pr == 'true' }} steps: + + - name: đŸ“Ļ Checkout + uses: actions/checkout@v4.2.2 - name: 🔍 Check existing PRs id: check_existing_pr @@ -234,18 +237,18 @@ jobs: if (prs.length > 0) { console.log(`â„šī¸ Found existing PR from dev to main: ${prs[0].html_url}`); - core.setOutput('exists', 'true'); - } else { core.setOutput('exists', 'false'); + } else { + core.setOutput('exists', 'true'); } } catch (error) { core.setFailed(`❌ Failed to check existing PRs: ${error}`); - core.setOutput('exists', 'error'); + core.setOutput('exists', 'false'); } - name: 📄 Create Pull Request if tag not found - if: ${{ !steps.check_existing_pr.outputs.result }} + if: ${{ steps.check_existing_pr.outputs.result }} uses: devops-infra/action-pull-request@v0.6.0 with: github_token: ${{ secrets.GITHUB_TOKEN }}