Skip to content

NO-JIRA fix release workflow #28

NO-JIRA fix release workflow

NO-JIRA fix release workflow #28

Workflow file for this run

name: Release
# This workflow is triggered when publishing a GitHub release
on:
push:
jobs:
release_docker:

Check failure on line 7 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 7, Col: 3): The workflow must contain at least one job with no dependencies.
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
name: Start Docker release process
needs: release
timeout-minutes: 60
steps:
- name: get secrets
id: secrets
uses: SonarSource/vault-action-wrapper@8e22afd670393ed80f489f5dbd517d09ea21d75b # 2.4.3-1
with:
secrets: |
development/github/token/SonarSource-sonar-scanner-cli-release token | GITHUB_TOKEN_RELEASE;
development/kv/data/slack token | SLACK_BOT_TOKEN;
- name: Create Release for Docker Image
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN_RELEASE }}
GITHUB_REPOSITORY: SonarSource/sonar-scanner-cli-docker
with:
tag_name: 5.0.0.2966
body: Release containing ScannerCLI version 5.0.0.2966
draft: false
prerelease: false
- name: Notify failures on Slack
uses: slackapi/slack-github-action@v1.23.0
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 }}"
env:
SLACK_BOT_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).SLACK_BOT_TOKEN }}