CircleCI-Public / trigger-circleci-pipeline-action

Trigger a CircleCI pipeline from any GitHub Actions event.
https://github.com/marketplace/actions/trigger-circleci-pipeline
47 stars 43 forks source link

feat: Wait for pipeline #65

Open LecrisUT opened 1 year ago

LecrisUT commented 1 year ago

Fixes #64

Alternative design: add sub-actions that can be trigerred as:

      - name: Trigger CircleCI
        id: trigger
        uses: CircleCI-Public/trigger-circleci-pipeline-action/trigger@main
      - name: Wait for CircleCI
        uses: CircleCI-Public/trigger-circleci-pipeline-action/wait@main
        with:
          workflow-id: ${{ steps.trigger.outputs.id }}

While the main action will always run both actions as bundled/composite. I would prefer the alternative design since there are other additions that can be implemented, e.g. getting the artifacts.