commit correct package
This commit is contained in:
parent
dd08f2c842
commit
1c6fdf41e9
@ -37,9 +37,15 @@ jobs:
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
package_name=package.json
|
||||||
|
if [ "${{ inputs.packagePath }}" != "null" ]; then
|
||||||
|
package_name="${{ inputs.packagePath }}package.json"
|
||||||
|
fi
|
||||||
|
|
||||||
git config user.name "${{ vars.GIT_DEPLOY_NAME }}"
|
git config user.name "${{ vars.GIT_DEPLOY_NAME }}"
|
||||||
git config user.email "${{ vars.GIT_DEPLOY_MAIL }}"
|
git config user.email "${{ vars.GIT_DEPLOY_MAIL }}"
|
||||||
git add package.json
|
|
||||||
|
git add $package_name
|
||||||
git commit -m "Update package.json version to $TAG_VERSION"
|
git commit -m "Update package.json version to $TAG_VERSION"
|
||||||
|
|
||||||
- name: Push changes back to repository
|
- name: Push changes back to repository
|
||||||
|
Loading…
Reference in New Issue
Block a user