Skip to content

qoomon/actions--parallel-steps

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Parallel Steps   Actions

With this action, you can run parallel steps in a GitHub Actions workflow jobs. Under the hood, this action uses act.

Usage

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.

Workflow Run Examples

https://github.com/qoomon/actions--parallel-steps/actions/workflows/example.yaml

Known Issues

  • So far act doesn't implement support for GITHUB_STEP_SUMMARY

Development

  • 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)"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •