Starting a branch build of OT3 software for mitigate-slow-builds #416
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Start an OT3 image build on a git branch' | |
run-name: 'Starting a branch build of OT3 software for ${{ github.ref_name }}' | |
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
jobs: | |
build-required: | |
name: 'Determine if build is already queued' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: 'check jobs' | |
uses: octokit/[email protected] | |
id: get_queued_runs | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
route: GET /repos/{owner}/{repo}/actions/runs?status=queued | |
owner: opentrons | |
repo: oe-core | |
- run: "echo queued runs: '${{ steps.get_queued_runs.outputs.data }}'" |