diff --git a/.gitea/workflows/setPackageVersion.yaml b/.gitea/workflows/setPackageVersion.yaml index b5312fa..fac766e 100644 --- a/.gitea/workflows/setPackageVersion.yaml +++ b/.gitea/workflows/setPackageVersion.yaml @@ -37,9 +37,15 @@ jobs: exit 0 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.email "${{ vars.GIT_DEPLOY_MAIL }}" - git add package.json + + git add $package_name git commit -m "Update package.json version to $TAG_VERSION" - name: Push changes back to repository