Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: vankichi <[email protected]>
  • Loading branch information
vankichi committed Sep 12, 2024
1 parent e2af515 commit a6fe72d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pre-backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
#
name: "Run backport PR"
on:
pull_request:
push:
branches:
- main
env:
TARGET_LABEL_NAME_PREFIX: "actions/backport/"
BACKPORT_BRANCH_NAME_PREFIX: "backport"
Expand Down Expand Up @@ -45,9 +47,11 @@ jobs:
git_commit_gpgsign: true
- name: Fetch PR info
run: |
HOGE=`gh pr list --limit 10 --json number,title,body,labels,headRefName,headRefOid,mergeCommit --state open`
HOGE=`gh pr list --limit 10 --json number,title,body,labels,headRefName,headRefOid,mergeCommit --state merged`
echo ${HOGE}
gh pr list --limit 10 --json number,title,body,labels,headRefName,headRefOid,mergeCommit --state open | \
FUGA=`${HOGE} | jq --arg oid "${GITHUB_SHA}" '.[] | select(.mergeCommit.oid == $oid)'`
echo {FUGA}
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 ${GITHUB_SHA}
Expand Down

0 comments on commit a6fe72d

Please sign in to comment.