Skip to content

Commit

Permalink
fix: get ref on workflow_dispatch (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
abemedia authored Aug 11, 2021
1 parent eb4827e commit b8a642e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function getSha(
const ref = await octokit.rest.git.getRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: payload.ref,
ref: payload.ref.replace('refs/', ''),
})

const commit = await octokit.rest.git.getCommit({
Expand Down

0 comments on commit b8a642e

Please sign in to comment.