Skip to content

Commit

Permalink
fixup! wip
Browse files Browse the repository at this point in the history
  • Loading branch information
korosuke613 committed May 25, 2024
1 parent 65f09e6 commit 25c6b50
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/reusable-ai-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@ jobs:
run: |
gh pr view ${{ inputs.pr_number }} --json baseRefName,headRefName > ${{ env.PR_JSON }}
cat ${{ env.PR_JSON }}
export BASE_REF_NAME=$(jq -r .baseRefName <${{ env.PR_JSON }})
export HEAD_REF_NAME=$(jq -r .headRefName <${{ env.PR_JSON }})
git fetch origin $BASE_REF_NAME
git fetch origin $HEAD_REF_NAME
echo "base_ref_name=$BASE_REF_NAME" >> $GITHUB_OUTPUT
echo "head_ref_name=$HEAD_REF_NAME" >> $GITHUB_OUTPUT
- name: Fetch all branches
run: git fetch origin
BASE_REF_NAME="$(jq -r .baseRefName <${{ env.PR_JSON }})"
HEAD_REF_NAME="$(jq -r .headRefName <${{ env.PR_JSON }})"
git fetch origin "$BASE_REF_NAME:$BASE_REF_NAME"
git fetch origin "$HEAD_REF_NAME:$HEAD_REF_NAME"
git branch
echo "base_ref_name=${BASE_REF_NAME}" >> "$GITHUB_OUTPUT"
echo "head_ref_name=${HEAD_REF_NAME}" >> "$GITHUB_OUTPUT"
- uses: denoland/setup-deno@v1
with:
Expand Down

0 comments on commit 25c6b50

Please sign in to comment.