Skip to content

Commit bd07b60

Browse files
Upgrades to release actions. (#5774)
1 parent f2b0c89 commit bd07b60

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/add-to-release-notes.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ on:
77
branches:
88
- main
99
jobs:
10-
release-notes:
10+
draft-release:
1111
runs-on: ubuntu-20.04
1212
if: github.repository == 'sqlfluff/sqlfluff'
1313
steps:
1414
- name: Update release notes
1515
uses: release-drafter/release-drafter@v5
16+
# If it's a release PR, then we should also update
17+
# the header and title here too.
18+
# with:
19+
# name: ${{ }}
20+
# header: ${{ }}
1621
env:
1722
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/create-release-pull-request.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,17 @@ jobs:
5555
5656
[1]: https://github.com/sqlfluff/sqlfluff/releases
5757
[2]: https://github.com/peter-evans/create-pull-request
58-
labels: release
58+
labels: |
59+
release
60+
skip-changelog
61+
62+
- name: Update release title and tag
63+
uses: release-drafter/release-drafter@v5
64+
with:
65+
# NOTE: We should eventually actually populate the date here, but that
66+
# will most likely change before the new pull request actually gets
67+
# merged, so we just add "YYYY-MM-DD" for now as a placeholder.
68+
name: "[${{ github.event.inputs.newVersionNumber }}] - YYYY-MM-DD"
69+
tag: ${{ github.event.inputs.newVersionNumber }}
70+
env:
71+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)