From d2e23b6a875af01206d2a2582c9d9d5ebc954f51 Mon Sep 17 00:00:00 2001 From: aalu1418 <50029043+aalu1418@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:26:41 -0700 Subject: [PATCH] add changes check --- .github/workflows/dependency-updates.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dependency-updates.yml b/.github/workflows/dependency-updates.yml index 0a2bb4a0f..df434de2e 100644 --- a/.github/workflows/dependency-updates.yml +++ b/.github/workflows/dependency-updates.yml @@ -20,7 +20,7 @@ jobs: id: branchName run: | echo "name=bump/solana-${{ steps.solImage.outputs.image }}" >> "$GITHUB_OUTPUT" - - name: Check if PR exists + - name: Check if changes + PR exists id: check env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -30,7 +30,7 @@ jobs: --head "${{ steps.branchName.outputs.name }}" \ --json title \ --jq 'length') - if ((prs > 0)); then + if ((prs > 0)) && [ -n "$(git status --porcelain)" ]; then echo "skip=true" >> "$GITHUB_OUTPUT" fi - name: "Create new branch if needed" @@ -111,7 +111,7 @@ jobs: id: branchName run: | echo "name=bump/e2e-deps-${{ steps.coreCTF.outputs.version }}" >> "$GITHUB_OUTPUT" - - name: Check if PR exists + - name: Check if changes + PR exists id: check env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -121,7 +121,7 @@ jobs: --head "${{ steps.branchName.outputs.name }}" \ --json title \ --jq 'length') - if ((prs > 0)); then + if ((prs > 0)) && [ -n "$(git status --porcelain)" ]; then echo "skip=true" >> "$GITHUB_OUTPUT" fi - name: "Create new branch if needed"