diff --git a/.github/workflows/devworkspace-generator-release.yml b/.github/workflows/devworkspace-generator-release.yml index 71bf01e..8c4b3e2 100644 --- a/.github/workflows/devworkspace-generator-release.yml +++ b/.github/workflows/devworkspace-generator-release.yml @@ -78,5 +78,5 @@ jobs: git config --global user.name "Anatolii Bazko" git config --global user.email "abazko@redhat.com" - ./make-release.sh --version {{ github.event.inputs.version }} + ./make-release.sh --version ${{ github.event.inputs.version }} diff --git a/make-release.sh b/make-release.sh index 9abc26e..d5e935c 100755 --- a/make-release.sh +++ b/make-release.sh @@ -57,6 +57,7 @@ checkoutToXBranch() { echo "[INFO] ${X_BRANCH} does not exist. Will be created a new one from main." resetChanges "main" git push origin main:"${X_BRANCH}" + git checkout "${X_BRANCH}" fi } @@ -65,6 +66,7 @@ checkoutToNextBranch() { resetChanges main git push origin main:"${NEXT_BRANCH}" + git checkout "${NEXT_BRANCH}" } publishArtifacts() {