Skip to content

Commit

Permalink
#532 added release-drafter
Browse files Browse the repository at this point in the history
  • Loading branch information
yaseno2186 committed Jul 24, 2024
1 parent 650e5e6 commit 0b6bf1c
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
GITHUB_TOKEN: ${{ inputs.github_token }}

0 comments on commit 0b6bf1c

Please sign in to comment.