Skip to content

Instantly share code, notes, and snippets.

@jon-ruckwood
Created August 11, 2021 08:35
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 jon-ruckwood/0d54c05d343592ec9dbb53fed9ea025e to your computer and use it in GitHub Desktop.
Save jon-ruckwood/0d54c05d343592ec9dbb53fed9ea025e to your computer and use it in GitHub Desktop.
Example of using "uses" in a composite action
# .github/actions/composite-example/action.yaml
runs:
using: composite
steps:
- uses: actions/setup-node@v2
with:
node-version: "16"
- shell: node {0}
run: |
console.log(process.version);
---
# .github/workflows/example-workflow.yaml
on: push
jobs:
use-composite-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: .github/actions/composite-example
@jon-ruckwood
Copy link
Author

jon-ruckwood commented Aug 11, 2021

This feature appears to be in "pre-release" and is not yet usable.

@jon-ruckwood
Copy link
Author

jon-ruckwood commented Aug 18, 2021

Feature is now live! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment