From bc818d8122d5120d6e567a4a608615be566b4061 Mon Sep 17 00:00:00 2001 From: villiseck Date: Mon, 13 Feb 2023 18:28:12 +0100 Subject: [PATCH] correction fichier yml --- .github/workflows/create-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 632c947..b838e22 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -36,7 +36,7 @@ jobs: SNAPSHOT: ${{ github.event.inputs.snapshotVersion }} run: | echo $NEW_TAG | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' - echo $NEW_TAG_SNAPSHOT | grep -E '^[0-9]+\.[0-9]+\.[0-9]+-SNAPSHOT$' + echo $SNAPSHOT | grep -E '^[0-9]+\.[0-9]+\.[0-9]+-SNAPSHOT$' - name: 'Verify version is not already used as a git tag' env: NEW_TAG: ${{ github.event.inputs.releaseVersion }} @@ -69,6 +69,8 @@ jobs: git merge main -m "Merge main to develop [skip ci]" npm version $SNAPSHOT sed -i "s#Version: [0-9]+\.[0-9]+\.[0-9]+#Version: $SNAPSHOT#g" README.md + git add . + git commit -m "Version $SNAPSHOT [skip ci]" git push - name: 'Create the github release' uses: softprops/action-gh-release@v1