File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 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
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 }}
You can’t perform that action at this time.
0 commit comments