diff --git a/.github/pr-glob-labeler.yml b/.github/pr-glob-labeler.yml index 0c1164f659..90e497fbd5 100644 --- a/.github/pr-glob-labeler.yml +++ b/.github/pr-glob-labeler.yml @@ -1,10 +1,16 @@ # Add type: unittest label if any changes in tests folders 'type: unittest': -- any: ['tests/**/*', 'openpype/tests/**/*'] +- tests/**/* +- tests/** +- openpype/tests/**/* +- openpype/tests/** # any changes in documentation structure 'type: documentation': -- any: ['website/**/*', 'docs/**/*'] +- website/**/* +- website/** +- docs/**/* +- docs/** # hosts triage 'host: Nuke': diff --git a/.github/workflows/project_actions.yml b/.github/workflows/project_actions.yml index dfa9bdf61f..ad8e8b9e13 100644 --- a/.github/workflows/project_actions.yml +++ b/.github/workflows/project_actions.yml @@ -48,7 +48,9 @@ jobs: label_prs_branch: name: pr_branch_label runs-on: ubuntu-latest - if: github.event.action == 'opened' + if: | + ${{(github.event_name == 'pull_request' && github.event.action == 'synchronize') + || (github.event_name == 'pull_request' && github.event.action == 'opened')}} steps: - name: Label PRs - Branch name detection uses: ffittschen/pr-branch-labeler@v1 @@ -58,7 +60,9 @@ jobs: label_prs_globe: name: pr_globe_label runs-on: ubuntu-latest - if: github.event.action == 'opened' + if: | + ${{(github.event_name == 'pull_request' && github.event.action == 'synchronize') + || (github.event_name == 'pull_request' && github.event.action == 'opened')}} steps: - name: Label PRs - Globe detection uses: actions/labeler@v4