Skip to content

Commit

Permalink
Update build-test.yml (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
navrang9 authored Oct 15, 2024
1 parent bc55d3e commit 3847c02
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

pull_request_target:
types: [labeled]
branches: [ "master" ]

workflow_dispatch:

jobs:
Expand All @@ -14,8 +17,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
if: github.event_name == 'pull_request_target' || contains(github.event.pull_request.labels.*.name, 'safe to test')
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Checkout Code for Push
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: actions/checkout@v3

- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
Expand Down

0 comments on commit 3847c02

Please sign in to comment.