Skip to content

Commit

Permalink
💚 fix CI PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitZugmeyer committed Jan 6, 2025
1 parent 6fb4e3c commit 4841b8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy/deploy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const { printLog, runMain } = require('../lib/executionUtils')
const { fetchPR, getLocalBranch } = require('../lib/gitUtils')
const { fetchPR, LOCAL_BRANCH } = require('../lib/gitUtils')
const { command } = require('../lib/command')

const {
Expand Down Expand Up @@ -50,7 +50,7 @@ async function main(env, version, uploadPathTypes) {
for (const uploadPathType of uploadPathTypes) {
let uploadPath
if (uploadPathType === 'pull-request') {
const pr = await fetchPR(getLocalBranch())
const pr = await fetchPR(LOCAL_BRANCH)
if (!pr) {
console.log('No pull requests found for the branch')
return
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/gitUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ module.exports = {
initGitConfig,
fetchPR,
getLastCommonCommit,
getLocalBranch: () => process.env.CI_COMMIT_REF_NAME,
LOCAL_BRANCH: process.env.CI_COMMIT_REF_NAME,
}

0 comments on commit 4841b8e

Please sign in to comment.