Skip to content

Commit e940545

Browse files
⚙️ [Maintenance]: Align workflows across action repositories (#11)
This pull request updates the GitHub Actions workflow for releases, focusing on improved clarity, expanded release triggers, and dependency updates. Workflow improvements: * The release workflow now also triggers on changes to any files under the `src/` directory, in addition to `action.yml`. * Permission comments have been added to clarify why `contents: write` and `pull-requests: write` are needed. * The step name for checking out the repository has been changed from "Checkout Code" to "Checkout repo" for clarity. Dependency update: * The `PSModule/Release-GHRepository` GitHub Action has been updated from version `v2.0.1` to `v2.0.2`.
1 parent d66349c commit e940545

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/Release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,24 @@ on:
1414
- labeled
1515
paths:
1616
- 'action.yml'
17+
- 'src/**'
1718

1819
concurrency:
1920
group: ${{ github.workflow }}-${{ github.ref }}
2021
cancel-in-progress: true
2122

2223
permissions:
23-
contents: write
24-
pull-requests: write
24+
contents: write # Required to create releases
25+
pull-requests: write # Required to create comments on the PRs
2526

2627
jobs:
2728
Release:
2829
runs-on: ubuntu-latest
2930
steps:
30-
- name: Checkout Code
31+
- name: Checkout repo
3132
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3233
with:
3334
persist-credentials: false
3435

3536
- name: Release
36-
uses: PSModule/Release-GHRepository@88c70461c8f16cc09682005bcf3b7fca4dd8dc1a # v2.0.1
37-
env:
38-
GITHUB_TOKEN: ${{ github.token }}
37+
uses: PSModule/Release-GHRepository@5a5165d66f485d1aad217ef34a190178b214fdcb # v2.0.2

0 commit comments

Comments
 (0)