Skip to content

Instantly share code, notes, and snippets.

@magnetikonline
Last active April 27, 2021 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magnetikonline/d0d4b1effa7a949bfe194ec6eb4ae758 to your computer and use it in GitHub Desktop.
Save magnetikonline/d0d4b1effa7a949bfe194ec6eb4ae758 to your computer and use it in GitHub Desktop.
Simple flow for passing artefacts between GitHub Actions workflow jobs.
name: Workflow
on:
push:
branches:
- main
jobs:
first:
runs-on: ubuntu-latest
steps:
- name: Make artifacts
run: |
mkdir -p dist/child
touch dist/my-file
touch dist/child/another-file
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
if-no-files-found: error
name: dist
path: dist/
second:
needs:
- first
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
- run: find .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment