feat: upgrade wagtail-metadata dependency to 5.* #47
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yamllint disable rule:line-length rule:truthy | |
--- | |
name: Release Drafter | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- edited | |
pull_request_target: | |
types: [opened, reopened, synchronize] | |
permissions: | |
contents: write # for release-drafter/release-drafter to create a github release | |
pull-requests: write # for release-drafter/release-drafter to add label to PR | |
jobs: | |
update_pr_labels: | |
name: Update PR Labels | |
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: release-drafter/release-drafter@v5 | |
with: | |
disable-autolabeler: false | |
disable-releaser: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
update_release_draft: | |
name: Update Release Draft | |
if: github.event_name == 'push' | |
runs-on: ubuntu-latest | |
env: | |
PUBLISH_DRAFT: false | |
steps: | |
- name: Check if a version is cut | |
if: "contains(github.event.head_commit.message, 'chore(prerelease): Cut Version')" | |
run: | | |
echo "PUBLISH_DRAFT=true" >> $GITHUB_ENV | |
# Drafts your next Release notes | |
- uses: release-drafter/release-drafter@v5 | |
with: | |
disable-autolabeler: true | |
disable-releaser: false | |
publish: ${{ env.PUBLISH_DRAFT }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |