Skip to content

Commit 3594cfe

Browse files
authored
Merge pull request #8 from NghiaCaNgao/refactor
change condition for running job in action
2 parents 46df609 + febf223 commit 3594cfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
types:
66
- closed
7-
branches:
7+
branches: #target branch
88
- main
99
workflow_dispatch:
1010
inputs:
@@ -19,7 +19,7 @@ jobs:
1919
contents: write
2020
runs-on: ubuntu-latest
2121
steps:
22-
- name: Log
22+
- name: Log # source branch is head.labels.
2323
run: |
2424
echo ${{github.event.pull_request.head.label}}
2525
echo ${{github.event.pull_request.labels.*.name}}

0 commit comments

Comments
 (0)