diff --git a/.github/workflows/release-che-docs.yml b/.github/workflows/release-che-docs.yml index 63ee267ba..d8306c30b 100644 --- a/.github/workflows/release-che-docs.yml +++ b/.github/workflows/release-che-docs.yml @@ -16,7 +16,7 @@ on: branches: - master paths: - - 'deploy/olm-catalog/stable/eclipse-che-preview-*/manifests/che-operator.clusterserviceversion.yaml' + - 'VERSION' jobs: build: diff --git a/.github/workflows/release-chectl.yml b/.github/workflows/release-chectl.yml index f3bf62f95..a40fa3233 100644 --- a/.github/workflows/release-chectl.yml +++ b/.github/workflows/release-chectl.yml @@ -16,7 +16,7 @@ on: branches: - master paths: - - 'deploy/olm-catalog/stable/eclipse-che-preview-*/manifests/che-operator.clusterserviceversion.yaml' + - 'VERSION' jobs: build: diff --git a/.github/workflows/release-community-operator-PRs.yml b/.github/workflows/release-community-operator-PRs.yml index 4c56d7cd1..eda093188 100644 --- a/.github/workflows/release-community-operator-PRs.yml +++ b/.github/workflows/release-community-operator-PRs.yml @@ -12,7 +12,7 @@ on: branches: - master paths: - - 'deploy/olm-catalog/stable/eclipse-che-preview-*/manifests/che-operator.clusterserviceversion.yaml' + - 'VERSION' jobs: build: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9bdd8e53b..9caf6708a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -93,10 +93,15 @@ jobs: git checkout ${BRANCH} git checkout ${CHE_VERSION}-release ./make-release.sh ${CHE_VERSION} --push-git-changes --pull-requests ${{ github.event.inputs.force_update }} - - name: Create MM message + - name: Create failure MM message + if: ${{ failure() }} run: | - echo "{\"text\":\":building_construction: Che Operator ${{ github.event.inputs.version }} has been released: https://quay.io/eclipse/che-operator:${{ github.event.inputs.version }}\"}" > mattermost.json + echo "{\"text\":\":building_construction: Che Operator ${{ github.event.inputs.version }} release has failed: https://github.com/eclipse-che/che-operator/actions/workflows/release.yml\"}" > mattermost.json + - name: Create success MM message + run: | + echo "{\"text\":\":building_construction: Che Operator ${{ github.event.inputs.version }} release PR have been created: https://github.com/eclipse-che/che-operator/pulls/che-bot\"}" > mattermost.json - name: Send MM message + if: ${{ success() }} || ${{ failure() }} uses: mattermost/action-mattermost-notify@master env: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} diff --git a/VERSION b/VERSION new file mode 100644 index 000000000..262892680 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +7.27.2 \ No newline at end of file diff --git a/make-release.sh b/make-release.sh index 235e35497..93a6a2f06 100755 --- a/make-release.sh +++ b/make-release.sh @@ -181,6 +181,13 @@ updateNightlyOlmFiles() { fi } +updateVersionFile() { + echo "[INFO] updating VERSION file" + echo ${RELEASE} > VERSION + git add VERSION + git commit -m "Update VERSION to $RELEASE" --signoff +} + releaseOlmFiles() { echo "[INFO] releaseOlmFiles :: Release OLM files" echo "[INFO] releaseOlmFiles :: Launch 'olm/release-olm-files.sh' script" @@ -257,6 +264,7 @@ prepareCommunityOperatorsUpdate() { } run() { checkoutToReleaseBranch + updateVersionFile releaseOperatorCode if [[ $UPDATE_NIGHTLY_OLM_FILES == "true" ]]; then updateNightlyOlmFiles