Skip to content

Merge pull request #2 from codeconsole/grace--default-skipNonDigests #31

Merge pull request #2 from codeconsole/grace--default-skipNonDigests

Merge pull request #2 from codeconsole/grace--default-skipNonDigests #31

Workflow file for this run

name: Changelog
on:
issues:
types: [closed,reopened]
push:
branches:
- 6.0.x
workflow_dispatch:
jobs:
release_notes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check if it has release drafter config file
id: check_release_drafter
run: |
has_release_drafter=$([ -f .github/release-drafter.yml ] && echo "true" || echo "false")
echo ::set-output name=has_release_drafter::${has_release_drafter}
- name: Extract branch name
id: extract_branch
run: echo ::set-output name=value::${GITHUB_REF:11}
# If it has release drafter:
- uses: release-drafter/release-drafter@v6
if: steps.check_release_drafter.outputs.has_release_drafter == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commitish: ${{ steps.extract_branch.outputs.value }}
filter-by-commitish: true