Skip to content

Commit e26bc50

Browse files
authored
Update update-contributors-details.yml
1 parent 7dfbadc commit e26bc50

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/update-contributors-details.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ name: update-contributor-details
22

33
on:
44
pull_request_target:
5-
types:
6-
- closed
7-
branches:
8-
- main
5+
types: [closed]
6+
branches: [main]
97

108
env:
119
REPO_NAME: ${{ github.repository }}
@@ -14,7 +12,7 @@ env:
1412

1513
jobs:
1614
update-by-pr:
17-
if: ${{ github.event.pull_request.title != 'init' }}
15+
if: ${{ github.event.pull_request.title != 'init' && github.event.pull_request.merged == true }}
1816
runs-on: ubuntu-latest
1917

2018
permissions:
@@ -62,4 +60,4 @@ jobs:
6260
else
6361
echo "Nothing to push"
6462
exit 1
65-
fi
63+
fi

0 commit comments

Comments
 (0)