diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 4474d32..0064176 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,7 +2,7 @@ name: Run tests on: pull_request_target: - types: [opened, synchronize] + types: [opened, synchronize, labeled, unlabeled] schedule: - cron: '0 0 * * *' @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check user permissions - if: ${{ github.event_name == 'pull_request' && github.event.pull_request.author_association != 'MEMBER' }} + if: ${{ startsWith(github.event_name, 'pull_request') && github.event.pull_request.author_association != 'MEMBER' }} run: | echo "Action was not triggered by an organization member. Exiting now." exit 1