Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Wait-for-pipeline input variable #64

Open
1 task done
LecrisUT opened this issue Aug 23, 2023 · 0 comments · May be fixed by #65
Open
1 task done

Request: Wait-for-pipeline input variable #64

LecrisUT opened this issue Aug 23, 2023 · 0 comments · May be fixed by #65

Comments

@LecrisUT
Copy link

LecrisUT commented Aug 23, 2023

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

Although currently you could write up a requester that would query for the status of the job, e.g.:

      - name: Trigger CircleCI
        id: circle-ci
        uses: CircleCI-Public/[email protected]
        env:
          CCI_TOKEN: ${{ secrets.CCI_TOKEN }}
      - name: Wait for CircleCI
        uses: mydea/action-wait-for-api@v1
        with:
          timeout: 3600
          url: https://circleci.com/api/v2/project/gh/owner/projectjob/${{ steps.circle-ci.outputs.number }}
          expected-status: 200
          expected-response-field: status
          expected-response-field-value: success

It is hard to generalize to check for other statuses like failed, etc.

Describe the solution you'd like

Instead it would be nice to have the code be re-used to wait for the pipeline to complete, e.g.:

      - name: Trigger CircleCI
        id: circle-ci
        uses: CircleCI-Public/[email protected]
        env:
          CCI_TOKEN: ${{ secrets.CCI_TOKEN }}
        with:
          wait_for_pipeline: true
@LecrisUT LecrisUT linked a pull request Aug 24, 2023 that will close this issue
@LecrisUT LecrisUT changed the title Request: Wait-for input variable Request: Wait-for-pipeline input variable Aug 25, 2023
@emdobrin emdobrin mentioned this issue Sep 7, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant