We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5afdf6d + 51e8a46 commit 34c0f9dCopy full SHA for 34c0f9d
.github/workflows/release-notes.yml
@@ -36,7 +36,18 @@ jobs:
36
pull-requests: write
37
runs-on: ubuntu-latest
38
steps:
39
+ - name: "🔢 Derive semver range from branch"
40
+ id: version
41
+ run: |
42
+ BRANCH="${{ github.event.pull_request.base.ref || github.ref_name }}"
43
+ if [[ "$BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]]; then
44
+ echo "range=~${BRANCH%.x}.0" >> "$GITHUB_OUTPUT"
45
+ fi
46
- name: "📝 Update Release Draft"
47
uses: release-drafter/release-drafter@v7
48
+ continue-on-error: true
49
+ with:
50
+ commitish: ${{ github.event.pull_request.base.ref || github.ref_name }}
51
+ filter-by-range: ${{ steps.version.outputs.range }}
52
env:
53
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments