Skip to content

Commit 57ee1b2

Browse files
Improved github actions workflow
Removed master from test.yml triggers -- only main now Added generate_release_notes: true to the GitHub Release step Added top-level permissions: contents: read to release.yml (the release job still overrides to write as needed) Tightened tag pattern from v* to v[0-9]+.[0-9]+.[0-9]+* -- only matches semver tags like v1.2.3, v1.0.0-beta
1 parent e6d530e commit 57ee1b2

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ name: Build and Package Release
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- 'v[0-9]+.[0-9]+.[0-9]+*'
7+
8+
permissions:
9+
contents: read
710

811
jobs:
912
release:
@@ -73,5 +76,6 @@ jobs:
7376
name: Release ${{ steps.get_version.outputs.VERSION }}
7477
draft: false
7578
prerelease: false
79+
generate_release_notes: true
7680
env:
7781
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI - Run Tests
22

33
on:
44
push:
5-
branches: [ main, master ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ main, master ]
7+
branches: [ main ]
88
workflow_dispatch:
99

1010
permissions:

0 commit comments

Comments
 (0)