Skip to content

Commit

Permalink
Trigger on CircleCI instead
Browse files Browse the repository at this point in the history
  • Loading branch information
cheran-senthil committed Aug 29, 2024
1 parent 3b1343f commit 5c7db9c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 56 deletions.
56 changes: 0 additions & 56 deletions .github/workflows/test-circleci-config.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/trigger-circleci-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test CircleCI Config

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
trigger-circleci-pipeline:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Trigger CircleCI Pipeline
run: |
curl -X POST \
-H "Circle-Token: ${{ secrets.CIRCLECI_API_TOKEN }}" \
-H "Content-Type: application/json" \
-d '{
"parameters": {
"SOURCE_TYPE": "github",
"S3_URL": "",
"REPOSITORY": "https://github.com/cheran-senthil/cheran-senthil.github.io",
"REF": "main",
"BUILD_DIR": ".",
"PACKAGE_INSTALL_COMMAND": "ls",
"BUILD_COMMAND": "ls",
"OUTPUT_DIR": ".",
"ONE_CLICK_SERVER_URL": "https://jorge.ngrok.pro",
"ENVIRONMENT_VARIABLES": "",
"ENVIRONMENT": "development"
}
}' \
https://circleci.com/api/v2/project/gh/${GITHUB_REPOSITORY}/pipeline

0 comments on commit 5c7db9c

Please sign in to comment.