Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f27c37c

Browse files
author
Jacek Gębal
committed
Do not push into branch if the build is on a pull request
1 parent 825a6fd commit f27c37c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ jobs:
224224

225225
- name: Push version update to repository
226226
id: push-version-number-update
227+
if: ${{ github.event_name != 'pull_request' }}
227228
run: |
228229
git add sonar-project.properties VERSION BUILD_NO source/* docs/*
229230
git commit -m 'Updated project version after build [skip ci]'

0 commit comments

Comments
 (0)