MAINTAINABILITY: Added approval before code execution. (#2218)

This commit is contained in:
wheatley
2021-11-08 09:32:12 +10:00
committed by GitHub
parent 2794bc3cf4
commit 99c6287a67

View File

@@ -1,14 +1,22 @@
name: 'BrowserStack Test'
on:
pull_request:
branches:
- master
on:
pull_request_target:
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.
ubuntu-job:
name: 'BrowserStack Test on Ubuntu'
runs-on: ubuntu-latest # Can be self-hosted runner also
environment:
name: Integrate Pull Request
env:
GITACTIONS: true
steps:
@@ -27,6 +35,9 @@ jobs:
- name: 'Checkout the repository'
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 2
- name: 'Setting up Ruby'
uses: ruby/setup-ruby@v1