diff options
author | Mate Molnar <mate.molnar@sonarsource.com> | 2023-08-15 10:41:29 +0200 |
---|---|---|
committer | Mate Molnar <matemoln@users.noreply.github.com> | 2023-08-16 09:32:17 +0200 |
commit | 520ffb38d9bc7b49acfd9dd07c226bd0de68ecf1 (patch) | |
tree | 1b20cffc5e76415197ce1b0e4d9d7a197c6044d6 /.github | |
parent | cc5dd02aaea0a17b0d326bb9c593d51731d0c351 (diff) | |
download | sonar-scanner-cli-520ffb38d9bc7b49acfd9dd07c226bd0de68ecf1.tar.gz sonar-scanner-cli-520ffb38d9bc7b49acfd9dd07c226bd0de68ecf1.zip |
BUILD-3596 Fix Docker Image release and slack messages
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/release.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e73e503..69b1e24 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,8 @@ jobs: slackChannel: team-sonarqube-build release_docker: permissions: - id-token: write + id-token: write # Required by SonarSource/vault-action-wrapper + contents: write # Required by softprops/action-gh-release runs-on: ubuntu-latest name: Start Docker release process needs: release @@ -35,6 +36,6 @@ jobs: if: failure() with: channel-id: team-sonarqube-build - slack-message: "Release failed, see the logs at https://github.com/{{ GITHUB_REPOSITORY }}/actions by {{ GITHUB_ACTOR }}" + slack-message: "Releasing Docker Image failed, see the logs at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} by ${{ github.actor }}" env: SLACK_BOT_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).SLACK_BOT_TOKEN }} |