Created
July 17, 2023 20:57
-
-
Save jblacker/4f8b3d87b3b0b60a00c166e05d6ced81 to your computer and use it in GitHub Desktop.
CircleCI Trigger Pipeline via GitHub Action
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: "Deploy Staging" | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
deploy-staging: | |
name: "Trigger CircleCI to Deploy Staging" | |
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/deploy-staging') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Trigger CircleCI" | |
id: ww-fe-cci-deploy | |
uses: CircleCI-Public/[email protected] | |
env: | |
CCI_TOKEN: ${{ secrets.CCI_TOKEN }} | |
with: | |
GHA_Meta: DEPLOY_STAGING |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment