Skip to content

Commit 9a3bb55

Browse files
committed
Fix paths
1 parent 8125d3d commit 9a3bb55

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/format-apply.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
@@ -34,7 +35,7 @@ jobs:
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

0 commit comments

Comments
 (0)