Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scope job to develop #7

Merged
merged 12 commits into from
Jan 17, 2025
6 changes: 3 additions & 3 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
name-template: "$VERSION"
tag-template: "$VERSION"
categories:
- title: "🚀 Features"
labels:
Expand All @@ -15,6 +15,6 @@ categories:
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
template: |
## Changes to $REPOSITORY for v$RESOLVED_VERSION
## Changes to $REPOSITORY for $VERSION

$CHANGES
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@ name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- develop
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]

permissions:
contents: write
Expand All @@ -22,11 +17,11 @@ jobs:
id: version
run: |
RELEASE_VERSION=v$(TZ='Australia/Sydney' date +'%Y.%m.%d-%H%M')
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_OUTPUT
- name: Create draft
uses: release-drafter/release-drafter@v6
with:
config-name: release-drafter.yml
version: ${{ env.RELEASE_VERSION }}
version: ${{ steps.version.outputs.RELEASE_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}