Skip to content

Commit

Permalink
add changes check
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 committed Feb 16, 2024
1 parent 2ff06d6 commit d2e23b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dependency-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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"
Expand Down Expand Up @@ -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 }}
Expand All @@ -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"
Expand Down

0 comments on commit d2e23b6

Please sign in to comment.