Link Search Menu Expand Document

Github Cheat Sheet

List of Github CI integrations

  • TravisCI: build using VMs and Docker
  • GitMate: notify contacts, detect duplication

Actions

Interaction/input fields on manually triggering workflow

name: someworkflow
on:
  workflow_dispatch:
    inputs:
      my_branch:
        description: Please enter branch name
        required: true
        default: master

Switching runners using output variables

jobs:
  init:
    # Running an init step on a default runner to autosense the code
    outputs:
      mode: $    # Optional declaration
    steps:
      - name: checkout
        uses: actions/[email protected]
        with:
          fetch-depth: 2

      - name: autosense
        id: autosense                 # Ensure to set an 'id' field here or it might silently fail!
        run: sh autosense.sh          # Does something like: echo "::set-output name=runner::my-special-runner-label"

  build:
    needs: [init]                     # Mandatory dependency to ensure outputs are set
    runs-on: $
    run: ...