diff --git a/.github/workflows/create-gh-release.yml b/.github/workflows/create-gh-release.yml index bd5a9c4da..063f879bb 100644 --- a/.github/workflows/create-gh-release.yml +++ b/.github/workflows/create-gh-release.yml @@ -28,8 +28,7 @@ jobs: qualifier=`echo "${release##*.}"` echo $version echo $qualifier - echo "## ${release}" > ${{ github.workspace }}/gen-changelog.md - sed "/${version} ${qualifier}/,/^## .*/!d;//d;s/^* /- /" Changelog.md >> ${{ github.workspace }}/gen-changelog.md + sed "/${version} ${qualifier}/,/^## .*/!d;//d;s/^* /- /" Changelog.md > ${{ github.workspace }}/gen-changelog.md - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce with: name: changelog-${{ inputs.version }}-${{ github.run_id }}.md @@ -62,7 +61,7 @@ jobs: with: id: ${{ inputs.version }} tag_name: ${{ inputs.version }} - release_name: Release ${{ inputs.version }} + release_name: ${{ inputs.version }} body_path: ${{ github.workspace }}/gen-changelog.md draft: true prerelease: false \ No newline at end of file diff --git a/.github/workflows/eclipse-ls-extensions-build.yml b/.github/workflows/eclipse-ls-extensions-build.yml index 4f6e4fe19..412af74b3 100644 --- a/.github/workflows/eclipse-ls-extensions-build.yml +++ b/.github/workflows/eclipse-ls-extensions-build.yml @@ -99,3 +99,11 @@ jobs: else ./mvnw --batch-mode clean package -Pe430 -P${{ inputs.build_type }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore fi + + notify-failure: + if: ${{ failure() }} + uses: ./.github/workflows/notify-failed-build.yml + with: + link: '[${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})' + label: 'Failed LS Extensions ${{ inputs.build_type }} build' + secrets: inherit diff --git a/.github/workflows/gh-hosted-eclipse-distro-build.yml b/.github/workflows/gh-hosted-eclipse-distro-build.yml index e2639bc74..c0db4c9af 100644 --- a/.github/workflows/gh-hosted-eclipse-distro-build.yml +++ b/.github/workflows/gh-hosted-eclipse-distro-build.yml @@ -320,3 +320,11 @@ jobs: AWS_DEFAULT_REGION: us-east-1 run: | aws s3 rm s3://dist.springsource.com/sts4-distro-ci-temp --recursive --exclude "*" --include "${{ needs.eclipse-distro-build.outputs.id }}/*" + + notify-failure: + if: ${{ failure() }} + uses: ./.github/workflows/notify-failed-build.yml + with: + link: '[${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})' + label: 'Failed Eclipse ${{ inputs.eclipse_profile }} Distribution ${{ inputs.build_type }} build' + secrets: inherit diff --git a/.github/workflows/notify-failed-build.yml b/.github/workflows/notify-failed-build.yml new file mode 100644 index 000000000..517d91217 --- /dev/null +++ b/.github/workflows/notify-failed-build.yml @@ -0,0 +1,42 @@ +name: Notify Failed Build + +on: + workflow_call: + inputs: + link: + description: Workflow URL link markdown + required: true + type: string + label: + description: Build label + required: true + type: string + +jobs: + notify-failure: + steps: + - id: tools-team-slack + uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 + env: + SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }} + with: + channel-id: "C0188MENU2J" + payload: | + { + "text": "${{ inputs.label }} ${{ inputs.link }}", + "attachments": [ + { + "pretext": "Build Failed", + "color": "f0190a", + "fields": [ + { + "title": "Status", + "short": true, + "value": "Failed" + } + ] + } + ] + } + + diff --git a/.github/workflows/snapshot-eclipse-ls-extensions-build.yml b/.github/workflows/snapshot-eclipse-ls-extensions-build.yml index 79e42f0d2..b3c765b09 100644 --- a/.github/workflows/snapshot-eclipse-ls-extensions-build.yml +++ b/.github/workflows/snapshot-eclipse-ls-extensions-build.yml @@ -6,9 +6,9 @@ concurrency: on: workflow_dispatch: -# push: -# branches: -# - 'main' + push: + branches: + - 'main' jobs: eclipse-ls-extensions: