Skip to content

Commit 1e65154

Browse files
feat: pre-publish job adjusted to triggering event (#212)
This PR regards https://splunk.atlassian.net/browse/ADDON-67617 It introduces dynamic change of pre-publish job which was necessary to avoid confusion while creating PR towards main branch having had pushed to develop branch. tests: - pr: splunk/splunk-add-on-for-mysql#464 - push to develop workflow (name has been changed): https://github.com/splunk/splunk-add-on-for-mysql/actions/runs/7399079510 - pr to main workflow (name remains intact): https://github.com/splunk/splunk-add-on-for-mysql/actions/runs/7399125452
1 parent 682b7f1 commit 1e65154

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/reusable-build-test-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2671,6 +2671,10 @@ jobs:
26712671
26722672
pre-publish:
26732673
if: ${{ !cancelled() }}
2674+
# The following line will rename 'pre-publish' to 'pre-publish-not_main_pr' when PR is created towards main branch
2675+
# It is necessary to avoid confusion caused by githubactions considering pre-publish for both push to develop branch
2676+
# and pull_request to main branch events.
2677+
name: ${{ github.event_name == 'pull_request' && github.base_ref == 'main' && 'pre-publish' || 'pre-publish-not_main_pr' }}
26742678
needs:
26752679
- meta
26762680
- compliance-copyrights

0 commit comments

Comments
 (0)