1
0

commit correct package

This commit is contained in:
Marco Maatz 2024-10-23 10:18:53 +02:00
parent dd08f2c842
commit 1c6fdf41e9

View File

@ -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