fix: remove actions/checkout to avoid Node.js dependency
This commit is contained in:
parent
de59684432
commit
8cee1c5655
@ -8,19 +8,14 @@ jobs:
|
|||||||
review:
|
review:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout PR branch
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Get base branch
|
- name: Get base branch
|
||||||
run: git fetch origin ${{ github.base_ref }}:${{ github.base_ref }}
|
run: git fetch origin ${{ github.base_ref }}:${{ github.base_ref }}
|
||||||
|
|
||||||
- name: Get PR diff
|
- name: Get PR diff
|
||||||
id: diff
|
id: diff
|
||||||
run: |
|
run: |
|
||||||
git diff origin/${{ github.base_ref }}..HEAD > /tmp/pr_diff.txt
|
git config --global --add safe.directory /__w/tftsr-devops_investigation/tftsr-devops_investigation
|
||||||
|
git diff origin/${{ github.base_ref }}..${{ github.head_ref }} > /tmp/pr_diff.txt
|
||||||
echo "diff_size=$(wc -l < /tmp/pr_diff.txt)" >> $GITHUB_OUTPUT
|
echo "diff_size=$(wc -l < /tmp/pr_diff.txt)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Analyze with Ollama
|
- name: Analyze with Ollama
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user