diff --git a/actions/hybrid_branch_deploy/action.yml b/actions/hybrid_branch_deploy/action.yml index 9f9026c..8b1f87c 100644 --- a/actions/hybrid_branch_deploy/action.yml +++ b/actions/hybrid_branch_deploy/action.yml @@ -32,17 +32,18 @@ runs: - name: Get git sha id: get_shas - run: git rev-list --ancestry-path cd2a864d09faa69900bff468f0f78d7e630ff87b..${{ github.event.pull_request.head.sha }} + run: echo "SHAS<> $GITHUB_OUTPUT shell: bash - uses: actions/github-script@v7 id: get_prs env: # Input the output of the previous step - PREVIOUS_SHA: ${{ steps.get_shas.outputs.stdout }} + PREVIOUS_SHAS: ${{ steps.get_shas.outputs.SHAS }} with: script: | - const previousShas = process.env.PREVIOUS_SHA.split('\n').map(s => s.trim()).filter(s => s.length > 0); + const previousShas = process.env.PREVIOUS_SHAS.split('\n').map(s => s.trim()).filter(s => s.length > 0); + console.log(previousShas); let pullRequests = []; for (const sha of previousShas) { const pr = await github.rest.repos.listPullRequestsAssociatedWithCommit({ @@ -50,10 +51,12 @@ runs: owner: context.repo.owner, repo: context.repo.repo, }); + console.log(pr); if (pr.data.length > 0) { pullRequests.push(...pr.data); } } + console.log(pullRequests); return pullRequests; - name: Print PRs