Skip to content

.github/workflows/example_use.yml #1208

.github/workflows/example_use.yml

.github/workflows/example_use.yml #1208

Workflow file for this run

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' }}