Skip to content

Commit

Permalink
chore: fix script handling of dist files
Browse files Browse the repository at this point in the history
Specify index.js for git add to avoid unintended files.
  • Loading branch information
gentlementlegen committed Oct 31, 2024
1 parent 21650bc commit aca2f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ runs:
GITHUB_TOKEN: ${{ steps.get_installation_token.outputs.token || github.token }}
run: |
git add "${{ inputs.manifestPath }}"
git add -f ${{ github.workspace }}/dist/\*
git add -f ${{ github.workspace }}/dist/index.js
echo "Changed files:"
echo "$(git diff-index --cached --name-only HEAD)"
if [ -n "$(git diff-index --cached --name-only HEAD)" ]; then
Expand Down

0 comments on commit aca2f76

Please sign in to comment.