From 45ddeddeda9780d10ee3d058c2962dc41e39883a Mon Sep 17 00:00:00 2001 From: Mark Rudolph Date: Thu, 23 Jan 2025 09:38:23 -0500 Subject: [PATCH] manually trigger pr tests on gha --- .github/workflows/updates.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/updates.yaml b/.github/workflows/updates.yaml index f4b351c..4263415 100644 --- a/.github/workflows/updates.yaml +++ b/.github/workflows/updates.yaml @@ -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: | @@ -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" \ No newline at end of file + --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 \ No newline at end of file