diff --git a/.github/workflows/reusable-build-test-release.yml b/.github/workflows/reusable-build-test-release.yml index 0368536aa..9ee5d7237 100644 --- a/.github/workflows/reusable-build-test-release.yml +++ b/.github/workflows/reusable-build-test-release.yml @@ -2671,6 +2671,10 @@ jobs: pre-publish: if: ${{ !cancelled() }} + # The following line will rename 'pre-publish' to 'pre-publish-not_main_pr' when PR is created towards main branch + # It is necessary to avoid confusion caused by githubactions considering pre-publish for both push to develop branch + # and pull_request to main branch events. + name: ${{ github.event_name == 'pull_request' && github.base_ref == 'main' && 'pre-publish' || 'pre-publish-not_main_pr' }} needs: - meta - compliance-copyrights