Skip to content

Commit

Permalink
ci: use GITHUB_REF instead of GITHUB_REF_NAME
Browse files Browse the repository at this point in the history
Signed-off-by: Fery Wardiyanto <[email protected]>
  • Loading branch information
feryardiant committed Feb 28, 2024
1 parent effff39 commit f3c380d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
$deployPath = get('deploy_path');
$appUrl = Env::get('APP_URL');

if ($ghRef = Env::get('GITHUB_REF_NAME')) {
if ($ghRef = Env::get('GITHUB_REF')) {
[$_, $ref, $name] = explode('/', $ghRef);
if ($ref === 'pull' && \is_numeric($name)) {
$pullRequest = $name;
Expand Down

0 comments on commit f3c380d

Please sign in to comment.