Skip to content

Commit

Permalink
fix: get previous pr info
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <[email protected]>
  • Loading branch information
hlts2 committed May 22, 2024
1 parent eed4656 commit 75604f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/backport-deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:
git_commit_gpgsign: true
- name: Fetch PR info
run: |
git checkout main
gh pr list --limit 10 --json number,title,body,labels,headRefName,headRefOid,mergeCommit --state merged | \
jq --arg oid "${GITHUB_SHA}" '.[] | select(.mergeCommit.oid == $oid)' > ${FETCHED_GITHUB_INFO_PATH}
cat ${FETCHED_GITHUB_INFO_PATH}
echo "------"
gh pr list --limit 10 --json number,title,body,labels,headRefName,headRefOid,mergeCommit --state merged
git branch -a
echo "------"
echo ${GITHUB_SHA}
Expand Down

0 comments on commit 75604f4

Please sign in to comment.