With this action, you can run parallel steps in a GitHub Actions workflow jobs. Under the hood, this action uses act.
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: qoomon/actions--parallel-steps@v1
id: parallel-steps
with:
steps: |
- run: echo Step0
- run: echo Step1
- uses: actions/github-script@v7
id: greetings
with:
script: |
const recipient = 'world'
console.log(`Hello ${recipient}!`)
core.setOutput('recipient', recipient)
# access parallel steps outputs
- run: echo Hello $RECIPIENT
env:
RECIPIENT: ${{ steps.parallel-steps.outputs.greetings-recipient }}
Note
The pre-actions of the parallel steps will be executed as part of the main action of this action.
https://github.com/qoomon/actions--parallel-steps/actions/workflows/example.yaml
- So far
act
doesn't implement support forGITHUB_STEP_SUMMARY
- Summary support has been merged already https://github.com/nektos/act/issues/2759. As soon as next act version has be released this action will be updated to support step summaries as well
- run locally
RUNNER_DEBUG=1 gh act --workflows .github/workflows/example.yaml \ --platform ubuntu-latest=-self-hosted \ --local-repository qoomon/actions--parallel-steps@main=$PWD \ --secret GITHUB_TOKEN="$(gh auth token)"