forked from HelinWei-NOAA/ufs-weather-model
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 894 Bytes
/
build_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Pull Request Tests
on:
pull_request:
branches: ['develop']
types: ['labeled']
env:
app: Accept:application/vnd.github.v3+json
jobs:
repocheck:
name: Check if repos are up to date
runs-on: ubuntu-20.04
outputs:
current: ${{ steps.check.outputs.current }}
steps:
- uses: actions/checkout@v2
- name: Wait for caching source
run: sleep 30
- uses: actions/cache@v2
with:
path: ~/id_file
key: helperid-${{ github.run_id }}
- name: Wait until repocheck in aux is complete
run: |
helper_id=$(cat ~/id_file)
cd ${{ github.workspace }}/tests/ci
jobs_url=$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/actions/runs/$helper_id/jobs
conclusion=$(echo $jobs_url | ./check_status.py completion "Repo check")
if [[ $conclusion == "failure" ]]; then
exit 1
fi