Skip to content

Commit 4932b83

Browse files
committed
ci: Use GITHUB_HEAD_REF instead of GITHUB_REF
The `GITHUB_REF` env is not the same when a PR is opened and when it's merged. The `GITHUB_HEAD_REF` env contains the source branch name in all pull_request event types
1 parent 0aca5c3 commit 4932b83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@
104104

105105
$testingStage = $configuration->addStage("acceptance", "docs");
106106
$testingStage->addBrancherServer("hntestgroot")
107-
->setLabels(['stage=acceptance', 'ci_ref=' . (\getenv('GITHUB_REF') ?: 'none')]);
107+
->setLabels(['stage=acceptance', 'ci_ref=' . (\getenv('GITHUB_HEAD_REF') ?: 'none')]);
108108

109109
return $configuration;

0 commit comments

Comments
 (0)