Skip to content

Commit

Permalink
Update alternate-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ash17290 authored Mar 28, 2024
1 parent 02edd3a commit 363ec14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/alternate-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ jobs:
}
}`;
const pr_details = JSON.parse('${{ steps.pr.outputs.result }}');
try {
const { data } = await github.graphql(mutation, {
input: {
pullRequestId: ${{ steps.pr.outputs.result.id }},
expectedHeadOid: ${{ steps.pr.outputs.result.head }}
pullRequestId: ${pr_details.id},
expectedHeadOid: ${pr_details.head},
}
});
} catch (GraphQLError) {
Expand Down

0 comments on commit 363ec14

Please sign in to comment.