Skip to content

Instantly share code, notes, and snippets.

@jblacker
Created July 17, 2023 20:57
Show Gist options
  • Save jblacker/4f8b3d87b3b0b60a00c166e05d6ced81 to your computer and use it in GitHub Desktop.
Save jblacker/4f8b3d87b3b0b60a00c166e05d6ced81 to your computer and use it in GitHub Desktop.
CircleCI Trigger Pipeline via GitHub Action
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