From 0b6bf1c52e0bd97cad28c6b3ad131a6ee08ba521 Mon Sep 17 00:00:00 2001 From: Yass Almardoud Date: Wed, 24 Jul 2024 14:26:03 +0200 Subject: [PATCH] #532 added release-drafter --- .github/workflows/release-drafter.yml | 30 ++++++++++++--------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index a0072e5..8da5463 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -3,27 +3,23 @@ name: Release Drafter on: workflow_call: - push: - branches: - - master - - main - pull_request: - types: [ opened, reopened, synchronize ] - -permissions: - contents: read + inputs: + github_token: + description: 'GitHub Token' + required: true + type: string jobs: update_release_draft: - if: contains(fromJSON('["buschmais", "jqassistant-plugin", "jqassistant-tooling", "jQAssistant"]'), github.repository_owner) - permissions: - contents: write - pull-requests: write runs-on: ubuntu-latest + steps: - - name: release-drafter - uses: release-drafter/release-drafter@v6 + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Set up Release Drafter + uses: release-drafter/release-drafter@v5 with: - config-file: .jqassistant-tooling/jqassistant-github-actions/.github/release-drafter.yml@main + config-name: .github/release-drafter.yml env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ inputs.github_token }} \ No newline at end of file