update permissions #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Release | |
on: | |
workflow_call: | |
inputs: | |
extraCommand: | |
description: 'Specify it if you want to run an extra command before attaching the artifact' | |
required: false | |
default: '' | |
type: string | |
artifactPath: | |
description: "Specify the path to the artifacts that should be attached to the build. Useful for multi-module extensions." | |
required: false | |
default: "." | |
type: string | |
sonar: | |
description: 'Specify it if you want to run sonar scan' | |
required: false | |
default: true | |
type: boolean | |
permissions: | |
checks: write | |
jobs: | |
sonar: | |
if: ${{ inputs.sonar == true }} | |
uses: liquibase/build-logic/.github/workflows/sonar-push.yml@main | |
secrets: inherit | |
with: | |
extraCommand: ${{ inputs.extraCommand }} | |
artifactPath: ${{ inputs.artifactPath }} | |
create-release: | |
name: Create Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create Release Draft | |
id: create-release | |
uses: release-drafter/release-drafter@v6 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |