Skip to content

Instantly share code, notes, and snippets.

@kierunb
Created September 20, 2022 09:09
Show Gist options
  • Save kierunb/d7f7af9c5fb90ed2b6e5a3ab3a40217c to your computer and use it in GitHub Desktop.
Save kierunb/d7f7af9c5fb90ed2b6e5a3ab3a40217c to your computer and use it in GitHub Desktop.
GitHub Action Examples
name: Basics
on:
workflow_dispatch:
jobs:
first-job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run a one-line script
run: echo Hello, world!
second-job:
runs-on: ubuntu-latest
steps:
- run: echo I'm running in parallel job
third-job:
runs-on: ubuntu-latest
needs: first-job
steps:
- run: echo I'm running in sequential job
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment