updating project actions

This commit is contained in:
Jakub Jezek 2023-03-29 15:36:32 +02:00
parent e7bcf55096
commit 6b94d073a9
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
2 changed files with 14 additions and 4 deletions

View file

@ -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':

View file

@ -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