allow for tests to run for dependabot without need for label

This commit is contained in:
zinduolis
2026-03-06 10:27:36 +10:00
parent 997a2e0a9e
commit 57692ea930

View File

@@ -3,18 +3,21 @@ name: 'BrowserStack Test'
on:
pull_request_target:
branches: [ master ]
types: [ labeled ]
types: [ labeled, opened, synchronize ]
jobs:
ubuntu-job:
name: 'BrowserStack Test on Ubuntu'
runs-on: ubuntu-latest
if: github.event.label.name == 'safe_to_test'
if: |
github.event.label.name == 'safe_to_test' ||
github.event.pull_request.user.login == 'dependabot[bot]'
env:
GITACTIONS: true
steps:
- name: 'Remove safe_to_test label'
if: github.event.label.name == 'safe_to_test'
uses: actions/github-script@v8
with:
script: |