File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,12 +19,13 @@ jobs:
1919 name : format-diff
2020 run-id : ${{ github.event.workflow_run.id }}
2121 github-token : ${{ secrets.GITHUB_TOKEN }}
22+ path : ${{ runner.temp }}/format-diff
2223
2324 - name : Read PR head
2425 id : head
2526 run : |
26- echo "repo=$(cat head-repo.txt)" >> "$GITHUB_OUTPUT"
27- echo "branch=$(cat head-branch.txt)" >> "$GITHUB_OUTPUT"
27+ echo "repo=$(cat ${{ runner.temp }}/format-diff/ head-repo.txt)" >> "$GITHUB_OUTPUT"
28+ echo "branch=$(cat ${{ runner.temp }}/format-diff/ head-branch.txt)" >> "$GITHUB_OUTPUT"
2829
2930 - name : Checkout PR head
3031 uses : actions/checkout@v6
3435 token : ${{ secrets.GITHUB_TOKEN }}
3536
3637 - name : Apply diff
37- run : git apply $GITHUB_WORKSPACE/.. /format.diff
38+ run : git apply ${{ runner.temp }}/format-diff /format.diff
3839
3940 - name : Commit and push
4041 uses : stefanzweifel/git-auto-commit-action@v5
You can’t perform that action at this time.
0 commit comments