Test gh workflow without approval

This commit is contained in:
zinduolis
2024-11-08 21:14:11 +10:00
parent 4648d9a97c
commit 5d7f6372b6

View File

@@ -1,17 +1,10 @@
name: 'BrowserStack Test'
on:
pull_request_target:
pull_request:
branches: [ master ]
jobs:
approve:
runs-on: ubuntu-latest
steps:
- name: Approve
run: echo For security reasons, all pull requests need to be approved first before running any automated CI.
jobs:
ubuntu-job:
name: 'BrowserStack Test on Ubuntu'
runs-on: ubuntu-latest # Can be self-hosted runner also
@@ -34,7 +27,7 @@ jobs:
local-identifier: random
- name: 'Checkout the repository'
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 2