ci: full-ci triggers all actions on PRs

This commit is contained in:
Filip Skokan 2021-11-12 15:21:13 +01:00
parent 82105d6e1f
commit 5309e000d5

View file

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