From 5309e000d532567bcde9f026586f375cb12743be Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Fri, 12 Nov 2021 15:21:13 +0100 Subject: [PATCH] ci: full-ci triggers all actions on PRs --- .github/workflows/test.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cfcb4537..36e1fa76 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,10 +9,26 @@ on: paths-ignore: - "**.md" - "tools/**" + pull_request_target: + paths-ignore: + - "**.md" + - "tools/**" + types: + - labeled schedule: - cron: 0 11 * * 1-5 jobs: + unlabel: + if: ${{ github.event_name == 'pull_request_target' && github.event.label.name == 'full-ci' }} + runs-on: ubuntu-latest + steps: + - run: gh pr edit $PR --repo $REPO --remove-label "full-ci" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR: ${{ github.event.number }} + REPO: ${{ github.event.repository.full_name }} + build: runs-on: ubuntu-latest steps: @@ -129,6 +145,7 @@ jobs: test-cloudflare: concurrency: test-cloudflare + if: ${{ !startsWith(github.event_name, 'pull_request') || (github.event_name == 'pull_request_target' && github.event.label.name == 'full-ci') }} needs: - build @@ -213,7 +230,7 @@ jobs: test-browsers: concurrency: test-browsers - if: ${{ github.event_name != 'pull_request' }} + if: ${{ !startsWith(github.event_name, 'pull_request') || (github.event_name == 'pull_request_target' && github.event.label.name == 'full-ci') }} env: BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}