Skip to content

Commit a34b386

Browse files
committed
Added changelog skipping and version validation
1 parent 9ab1f2b commit a34b386

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/release-drafter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ categories:
3131
#- title: "🧰 Maintenance"
3232
#- title: "⚠️ Deprecations"
3333
#- title: "✨ New Features"
34+
exclude-labels:
35+
- "skip changelog"
3436
change-template: "- $TITLE (#$NUMBER) by @$AUTHOR"
3537
template: |
3638
$CHANGES

.github/workflows/release-pipeline.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
- if: ${{ github.event.inputs != null && github.event.inputs.version != null }}
2525
name: set-input-version
2626
run: echo "::set-env name=VERSION::${{ github.event.inputs.version }}"
27+
- name: check-version
28+
run: 'if [[ ! "${{ env.VERSION }}" =~ ^([0-9]+\.[0-9]+\.[0-9]+.*)$ ]]; then echo "The version is not valid: ${{ env.VERSION }}"; exit 1; fi'
2729
- name: set-github-token
2830
run: echo "::set-env name=GITHUB_TOKEN::${{ secrets.GITHUB_TOKEN }}"
2931
- if: ${{ env.GITHUB_TOKEN && env.VERSION }}
@@ -88,6 +90,7 @@ jobs:
8890
pr_body: "Automated pull request for release version ${{ env.VERSION }}"
8991
pr_draft: false
9092
pr_allow_empty: true
93+
pr_label: "skip changelog"
9194
# only works if it exist: pr_milestone: v${{ env.VERSION }}
9295
github_token: ${{ secrets.GITHUB_TOKEN }}
9396
# Fix of release drafter to allow different events to trigger the release

0 commit comments

Comments
 (0)