Files
kimai2/.github/workflows/release-drafter.yaml

35 lines
932 B
YAML

name: Release Drafter
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
correct_repository:
runs-on: ubuntu-latest
name: Verify repository
steps:
- name: fail on fork
if: github.repository_owner != 'kimai'
run: exit 1
update_release_draft:
name: Draft next release
permissions:
contents: write # to create a github release draft
pull-requests: read # to identify changes that occurred
needs: correct_repository
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@693d20e7c1ce1a81d3a41962f85914253b518449 # v7.3.1
env:
token: ${{ secrets.GITHUB_TOKEN }}