diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b831dff..f2db1f5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,22 +1,15 @@ name: CI -# This workflow is triggered when a label is added to an issue. +# This workflow is triggered when a commit is pushed to main on: push: branches: - main jobs: - processLabelAction: - name: Trigger CircleCI Pipeline - # You may pin to the exact commit or the version. - # uses: CircleCI-Public/trigger-circleci-pipeline-action@a81cd720792a6088debd7f182b552845abb86f1b - uses: CircleCI-Public/trigger-circleci-pipeline-action@v1.2.0 - with: - # An optional additional metadata parameter. Will be available on the CircleCI pipeline as GHA_Meta. - GHA_Meta: # optional - # The slug of the target CircleCI project. For example, "github//". Will default to the current project. Can be overwritten with "TARGET_SLUG" environment variable. - target-slug: # optional - # The branch of the target CircleCI project. Will default to the current branch name. This should be overwritten if "target-slug" is set. Can be overwritten with "TARGET_BRANCH" environment variable. - target-branch: # optional - # The tag of the target CircleCI project. Will default to the current tag name if set. This or branch should be overwritten if "target-slug" is set. Can be overwritten with "TARGET_TAG" environment variable. - target-tag: # optional + trigger-circleci: + runs-on: ubuntu-latest + steps: + - name: CircleCI Trigger on Pull Request + uses: CircleCI-Public/trigger-circleci-pipeline-action@v1.0 + env: + CCI_TOKEN: ${{ secrets.CCI_TOKEN }}