Add authentication to the Web UI #1507
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: CircleCI Trigger Action | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened, ready_for_review ] | |
push: | |
branches: | |
- main | |
tags: | |
- v** | |
workflow_run: | |
workflows: ["Dependabot"] | |
types: | |
- completed | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
trigger-circle-ci: | |
if: | | |
!contains(github.event.pull_request.labels.*.name, 'do-not-merge') && | |
!contains(github.event.pull_request.labels.*.name, 'wip') | |
runs-on: ubuntu-latest | |
name: Pull Request Triggered CircleCI | |
steps: | |
# For Debugging Below | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- name: Dump job context | |
env: | |
JOB_CONTEXT: ${{ toJson(job) }} | |
run: echo "$JOB_CONTEXT" | |
- name: Dump steps context | |
env: | |
STEPS_CONTEXT: ${{ toJson(steps) }} | |
run: echo "$STEPS_CONTEXT" | |
- name: Dump runner context | |
env: | |
RUNNER_CONTEXT: ${{ toJson(runner) }} | |
run: echo "$RUNNER_CONTEXT" | |
- name: Dump strategy context | |
env: | |
STRATEGY_CONTEXT: ${{ toJson(strategy) }} | |
run: echo "$STRATEGY_CONTEXT" | |
- name: Dump matrix context | |
env: | |
MATRIX_CONTEXT: ${{ toJson(matrix) }} | |
run: echo "$MATRIX_CONTEXT" | |
- uses: actions/checkout@v3 | |
- name: Trigger CircleCI | |
id: trigger-circle-ci | |
run: | | |
./.circleci/trigger_pipeline.sh | |
env: | |
CIRCLE_TOKEN: ${{ secrets.CIRCLE_CI_TOKEN }} | |
BRANCH: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.event.ref }} |