Skip to content

Commit

Permalink
manually trigger pr tests on gha
Browse files Browse the repository at this point in the history
  • Loading branch information
alterationx10 committed Jan 23, 2025
1 parent e2472e4 commit 45ddedd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
scala-cli --power dependency-update branch --all
git config --global user.name "Mark Rudolph"
git config --global user.email "mark@k8ty.app"
git commit -am "Update dependencies" || echo "No changes to commit"
git commit -am "Update dependencies" && echo "changes_exists=true" >> $GITHUB_ENV || echo "No changes to commit" && echo "changes_exists=false" >> $GITHUB_ENV
- name: Push changes
run: |
Expand All @@ -60,4 +60,12 @@ jobs:
--title "Dependency Updates" \
--body "Dependency updates from scala-cli" \
--head dependency-update \
--base main || echo "Pull request already exists or no changes to push"
--base main && gh workflow run pr-tests.yml || echo "Pull request already exists or no changes to push"
- name: Trigger PR Tests
run: |
if [ "$changes_exists" = "true" ]; then
gh workflow run pr-tests.yml || echo "Error running PR tests"
else
echo "No changes; not running PR tests"
fi

0 comments on commit 45ddedd

Please sign in to comment.