Skip to content

Commit ef830ba

Browse files
🩹 [Patch]: Add Release workflow for handling pull request events
1 parent 1956fc9 commit ef830ba

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Auto-Release
1+
name: Release
22

3-
run-name: "Auto-Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
3+
run-name: "Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
44

55
on:
6-
pull_request_target:
6+
pull_request:
77
branches:
88
- main
99
types:
@@ -12,23 +12,27 @@ on:
1212
- reopened
1313
- synchronize
1414
- labeled
15+
paths:
16+
- 'action.yml'
1517

1618
concurrency:
1719
group: ${{ github.workflow }}-${{ github.ref }}
1820
cancel-in-progress: true
1921

2022
permissions:
21-
contents: write # Required to create releases
22-
pull-requests: write # Required to create comments on the PRs
23+
contents: write
24+
pull-requests: write
2325

2426
jobs:
25-
Auto-Release:
27+
Release:
2628
runs-on: ubuntu-latest
2729
steps:
2830
- name: Checkout Code
2931
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
32+
with:
33+
persist-credentials: false
3034

31-
- name: Auto-Release
35+
- name: Release
3236
uses: PSModule/Auto-Release@eabd533035e2cb9822160f26f2eda584bd012356 # v1.9.5
3337
env:
3438
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)