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

Request: How to trigger for a different branch #12

Closed rowi1de closed 2 years ago

rowi1de commented 2 years ago

Is there an existing issue that is already proposing this?

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

# Circle CI will build master and all PRs anyway, we just need to trigger non-default branches
name: Trigger CircleCI Build on Beta and Release Branch

on:
  push:
   branches:
   - beta
   - release

jobs:
  trigger-build:
    runs-on: ubuntu-latest

    steps:
      - name: Trigger CircleCI
        id: trigger-circle-ci
        uses: CircleCI-Public/trigger-circleci-pipeline-action@v1.0
        env:
          CCI_TOKEN: ${{ secrets.CIRCLE_TOKEN }}

should trigger CircleCI for the Branch the GitHub Action was triggered for

Describe the solution you'd like

Teachability, documentation, adoption, migration strategy

...

What is the motivation / use case for changing the behavior?

Make GitHub Action & Circle CI Integration smooth

rowi1de commented 2 years ago

There seems to be a PR already https://github.com/CircleCI-Public/trigger-circleci-pipeline-action/pull/11

rowi1de commented 2 years ago

https://github.com/CircleCI-Public/trigger-circleci-pipeline-action/pull/11