Skip to content

Commit

Permalink
fix: ref parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Jul 10, 2024
1 parent 404a45d commit a6a08d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ runs:
result-encoding: string
retries: 3
script: |
console.log('context.ref', context.ref);
console.debug('context.ref', context.ref);
const response = (
await github.rest.repos.listPullRequestsAssociatedWithCommit({
Expand All @@ -80,11 +80,11 @@ runs:
})
);
console.log('response', JSON.stringify(response, null, 2));
console.debug('response', JSON.stringify(response, null, 2));
for (const pullRequest of response.data) {
if (
pullRequest.base.ref === context.ref.replace('/refs/heads/', '') &&
pullRequest.base.ref === context.ref.replace('refs/heads/', '') &&
pullRequest.state === 'closed' &&
pullRequest.labels.some(label => label.name === 'autorelease: pending')
) {
Expand Down

0 comments on commit a6a08d1

Please sign in to comment.