Update circleci.yml #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Trigger CircleCI | |
on: | |
push: | |
branches: | |
- main | |
pull_request_target: | |
branches: | |
- main | |
jobs: | |
approve: # First step | |
runs-on: ubuntu-latest | |
steps: | |
- name: Approve | |
run: echo For security reasons, all pull requests need to be approved first before running any automated CI. | |
trigger-circleci: | |
runs-on: ubuntu-latest | |
environment: 'ci' | |
needs: [approve] # Require the first step to finish | |
steps: | |
- name: secretflow-yacl-ci | |
id: secretflow-yacl-ci | |
uses: CircleCI-Public/trigger-circleci-pipeline-action@v1.1.0 | |
env: | |
CCI_TOKEN: ${{ secrets.CCI_TOKEN }} |