Skip to content

Commit 5bd063c

Browse files
committed
fix: wrong sync files working directory
1 parent f288139 commit 5bd063c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/sync-files.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
4343
- name: Detect sync updates
4444
id: updates
45+
working-directory: target
4546
run: |
4647
if output=$(git status --porcelain) && [ -z "$output" ]; then
4748
echo "updated=true" >> "$GITHUB_OUTPUT"
@@ -52,16 +53,15 @@ jobs:
5253
- name: Output short commit SHA
5354
if: steps.updates.outputs.updated == 'true'
5455
id: sha
56+
working-directory: target
5557
run: |
56-
pushd target
5758
echo "short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
58-
popd
5959
6060
- name: Create Pull Request with applied automatic fixes
6161
if: steps.updates.outputs.updated == 'true'
62+
working-directory: target
6263
uses: peter-evans/create-pull-request@v7
6364
with:
64-
path: target
6565
token: ${{ steps.gh-app-token.outputs.token }}
6666
branch: "feature/sync-files-for-${{ steps.sha.outputs.short }}"
6767
commit-message: "chore: [sync-files] sync files"

0 commit comments

Comments
 (0)