Skip to content

Commit

Permalink
fix: use HEAD_REF
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickHeneise committed Jan 2, 2023
1 parent 9f63ffa commit 699cf2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import getDeploymentUrl from './vercel.js'

async function run() {
try {
const githubRef = process.env.GITHUB_REF
const githubRef = process.env.GITHUB_HEAD_REF
const githubProject = process.env.GITHUB_REPOSITORY
const githubBranch = githubRef.replace('refs/heads/', '')
const githubRepo = githubProject.split('/')[1]
Expand Down

0 comments on commit 699cf2b

Please sign in to comment.