Browse Source

NO-JIRA fix release workflow

test/jc/NO-JIRA-fix-release-workflow
jeremy cotineau 9 months ago
parent
commit
ecbb7b626b
1 changed files with 4 additions and 16 deletions
  1. 4
    16
      .github/workflows/release.yml

+ 4
- 16
.github/workflows/release.yml View File

@@ -1,26 +1,14 @@
name: Release
# This workflow is triggered when publishing a GitHub release
on:
release:
types:
- published
push:

jobs:
release:
permissions:
id-token: write
contents: write
uses: SonarSource/gh-action_release/.github/workflows/main.yaml@28c15313f2bb2ee0cb67ba48cc008c2391851b81 # 5.0.1
with:
publishToBinaries: true
mavenCentralSync: true
slackChannel: team-sonarqube-build
release_docker:
permissions:
id-token: write
runs-on: ubuntu-latest
name: Start Docker release process
needs: release
timeout-minutes: 60
steps:
- name: get secrets
@@ -37,8 +25,8 @@ jobs:
GITHUB_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN_RELEASE }}
GITHUB_REPOSITORY: SonarSource/sonar-scanner-cli-docker
with:
tag_name: ${{ github.event.release.tag_name }}
body: Release containing ScannerCLI version ${{ github.event.release.tag_name }}
tag_name: "refs/tags/5.0.0.2966"
body: Release containing ScannerCLI version 5.0.0.2966
draft: false
prerelease: false
- name: Notify failures on Slack
@@ -46,6 +34,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: "Release failed, see the logs at https://github.com/={{ GITHUB_REPOSITORY }}/actions by {{ GITHUB_ACTOR }}"
env:
SLACK_BOT_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).SLACK_BOT_TOKEN }}

Loading…
Cancel
Save