Skip to content

Commit c9ed927

Browse files
update codemod-publish.yaml to use working-directory.
1 parent 85d4f16 commit c9ed927

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/codemod-publish.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,9 @@ jobs:
3434
# Normalize path: remove leading ./ if present
3535
CODEMOD_YAML="${CODEMOD_YAML#./}"
3636
CODEMOD_DIR=$(dirname "$CODEMOD_YAML")
37-
# If dir is ".", set it to empty for working-directory
38-
if [ "$CODEMOD_DIR" = "." ]; then
39-
CODEMOD_DIR=""
40-
fi
37+
# Keep "." for root directory (working-directory needs a value)
4138
echo "Found codemod.yaml at: $CODEMOD_YAML"
42-
echo "Directory: ${CODEMOD_DIR:-.}"
39+
echo "Directory: $CODEMOD_DIR"
4340
echo "path=$CODEMOD_YAML" >> $GITHUB_OUTPUT
4441
echo "dir=$CODEMOD_DIR" >> $GITHUB_OUTPUT
4542
@@ -94,4 +91,5 @@ jobs:
9491
git push origin main --tags
9592
9693
- name: Publish codemod
97-
uses: codemod/publish-action@v1
94+
uses: codemod/publish-action@v1
95+
working-directory: ${{ steps.find.outputs.dir }}

0 commit comments

Comments
 (0)