From 1c6fdf41e95442ee5fc96083b690303d1e4565f7 Mon Sep 17 00:00:00 2001 From: Marco Maatz Date: Wed, 23 Oct 2024 10:18:53 +0200 Subject: [PATCH] commit correct package --- .gitea/workflows/setPackageVersion.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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