Skip to content

Instantly share code, notes, and snippets.

@davidmerrick davidmerrick/cheatsheet.md
Last active Oct 24, 2019

Embed
What would you like to do?
GitHub Actions Cheat Sheet

GitHub Actions Cheat Sheet

Actions

Restrict action to just changes to the "public" path:

on: 
  push:
    paths:
    - 'public/*'

Trigger only on PR close:

on: 
  pull_request:
    types: [closed]

Jobs

Steps

A step with a single command:

- name: Install Dependencies
  run: npm install

A step with a multiple commands:

- name: Clean install dependencies and build
  run: | 
    npm ci
    npm run build

Invoke an action

steps:
- uses: jakejarvis/s3-sync-action@master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.