-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.04 KB
/
example_use.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
38
39
40
41
42
on:
# This is used in testing here, so we check against PRs and pushes, as
# well as testing every day. In a real use case, you'd probably only use
# the `schedule` type, and possibly not every day.
pull_request:
branches:
- main
push:
branches:
- main
schedule:
- cron: "0 0 * * *"
defaults:
run:
shell: bash -l {0}
jobs:
check_rc:
runs-on: ubuntu-latest
name: "Check for an OpenMM RC"
steps:
- uses: actions/checkout@v2
- uses: ./
id: check
with:
channel: conda-forge
package: openmm
ndays: 30
labels: 'main openmm_rc'
# to use the output within the same job (different step)
- run: echo ${{ steps.check.outputs.hasrc }}
# to share output between jobs, use the outputs keyword
outputs:
hasrc: ${{ steps.check.outputs.hasrc }}
# run this job only if there's an RC
run_rc_tests:
needs: check_rc
uses: ./.github/workflows/example_triggered.yml
if: ${{ needs.check_rc.outputs.hasrc == 'True' }}