| 1 |
name: Release Drafter |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- main |
| 7 |
|
| 8 |
permissions: |
| 9 |
contents: read |
| 10 |
|
| 11 |
jobs: |
| 12 |
update_release_draft: |
| 13 |
if: github.repository == 'dask/dask' |
| 14 |
permissions: |
| 15 |
# Write permission is required to create a GitHub release |
| 16 |
contents: write |
| 17 |
pull-requests: read |
| 18 |
runs-on: ubuntu-latest |
| 19 |
steps: |
| 20 |
- uses: actions/checkout@v4 |
| 21 |
with: |
| 22 |
fetch-depth: 0 # Required to get tag history |
| 23 |
- name: Check if release commit |
| 24 |
id: check_release_commit |
| 25 |
run: git describe --exact-match --tags $(git rev-parse HEAD) |
| 26 |
continue-on-error: true |
| 27 |
- uses: release-drafter/release-drafter@v6 |
| 28 |
if: steps.check_release_commit.outcome != 'success' |
| 29 |
with: |
| 30 |
disable-autolabeler: true |
| 31 |
env: |
| 32 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |