mirror of
https://github.com/LazyDuchess/OpenTS2.git
synced 2025-01-22 08:11:47 -05:00
Checkout correct PR repo when run with label
This commit is contained in:
parent
4272d64a54
commit
9b3b474ea1
1 changed files with 9 additions and 1 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -11,7 +11,15 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name != 'pull_request_target' || contains(github.event.pull_request.labels.*.name, 'safe to test')
|
if: github.event_name != 'pull_request_target' || contains(github.event.pull_request.labels.*.name, 'safe to test')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout repository
|
||||||
|
if: ${{ github.event_name != 'pull_request_target' }}
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Checkout repository (Pull Request Target)
|
||||||
|
if: ${{ github.event_name == 'pull_request_target' }}
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: "refs/pull/${{ github.event.number }}/merge"
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ./Library
|
path: ./Library
|
||||||
|
|
Loading…
Reference in a new issue