Skip to content

Commit 91cc5b5

Browse files
committed
Dynamic environment setup
1 parent 5b45e7c commit 91cc5b5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ jobs:
2222
- name: Configure environment
2323
run: |
2424
echo "HYDE_RC_RUNNER_PATH=/tmp/hyde-rc-runner" >> $GITHUB_ENV
25-
echo "HYDE_RC_BRANCH=$GITHUB_SHA" >> $GITHUB_ENV
25+
if [ -z "$GITHUB_SHA" ]; then
26+
echo "HYDE_RC_RUNNER_BRANCH=master" >> $GITHUB_ENV
27+
else
28+
echo "HYDE_RC_BRANCH=$GITHUB_SHA" >> $GITHUB_ENV
29+
fi
2630
2731
- name: Set up test runner
2832
run: php -r 'require_once __DIR__."/vendor/autoload.php"; \Hyde\RealtimeCompiler\Tests\Integration\IntegrationTestCase::setUpTestRunner();'

0 commit comments

Comments
 (0)