From 43c919c7ef1048203dc2cbaea8e07a2e000e784a Mon Sep 17 00:00:00 2001 From: Chris Nowicki Date: Tue, 2 Dec 2025 10:18:34 -0500 Subject: [PATCH 1/2] initial preview.yml file --- .github/workflows/preview.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/workflows/preview.yml diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 000000000..e69de29bb From 23854ed4a4679bc7a0ad4b026e0b4794cde5f6dd Mon Sep 17 00:00:00 2001 From: Chris Nowicki Date: Tue, 2 Dec 2025 10:24:09 -0500 Subject: [PATCH 2/2] update to preview workflow --- .github/workflows/preview.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index e69de29bb..1cf6b407f 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -0,0 +1,24 @@ +name: CI Preview Dev Center + +on: + push: + branches-ignore: + - main + workflow_dispatch: {} + +jobs: + preview-build: + runs-on: ubuntu-latest + steps: + - name: Trigger CircleCI Preview Build + run: | + curl --location 'https://circleci.com/api/v2/project/gh/bigcommerce/developer-center/pipeline' \ + --header 'Circle-Token: ${{ secrets.CIRCLECI_TOKEN }}' \ + --header 'content-type: application/json' \ + --data "{ + \"branch\": \"${{ github.ref_name }}\", + \"parameters\": { + \"build_environment\": \"preview\", + \"github_triggering_actor\": \"${{ github.actor }}\" + } + }"