Skip to content

Commit

Permalink
update the update gha
Browse files Browse the repository at this point in the history
  • Loading branch information
alterationx10 committed Jan 24, 2025
1 parent 81d14dc commit 82d7460
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ jobs:
--head dependency-update \
--base main || echo "Pull request already exists or no changes to push"
- uses: docker/setup-buildx-action@v3
- name: Set up Docker
if: env.changes_exists == 'true'
uses: docker/setup-buildx-action@v3

- name: PR Tests
if: env.changes_exists == 'true'
run: |
gh pr comment --body "Running PR tests..."
if scala-cli --power test branch; then
echo "tests_passed=true" >> $GITHUB_ENV
else
Expand All @@ -87,7 +89,7 @@ jobs:
gh pr merge --squash --delete-branch --body "Auto-merged dependency updates"
- name: Close PR
if: env.tests_passed == 'false'
if: env.changes_exists == 'true' && env.tests_passed == 'false'
run: |
gh pr comment --body "PR tests failed :cry: Closing PR..."
gh pr close --delete-branch --body "PR tests failed"

0 comments on commit 82d7460

Please sign in to comment.