Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TECH] Essai de déclenchement de la CI via une Github Action, uniquement pour les Pull Requests. #10133

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@

version: 2.1

parameters:
GHA_Actor:
type: string
default: ''
GHA_Action:
type: string
default: ''
GHA_Event:
type: string
default: ''
GHA_Meta:
type: string
default: ''

orbs:
browser-tools: circleci/[email protected]

Expand Down Expand Up @@ -93,6 +107,10 @@ executors:
workflows:
version: 2
build-and-test:
# This workflow is set to be conditionally triggered, only when
# the GitHub Action is triggered.
# With no other workflows, normal push events will be ignored currently.
when: << pipeline.parameters.GHA_Action >>
jobs:
- checkout:
context: Pix
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/trigger-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Trigger CircleCI

on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
push:
branches: dev

jobs:
trigger-ci:
runs-on: ubuntu-latest

steps:
- name: Trigger CircleCI
# ensure PR is not draft
if: '! github.event.pull_request.draft'
uses: CircleCI-Public/[email protected]
env:
CCI_TOKEN: ${{ secrets.PIX_SERVICE_CIRCLE_CI_TOKEN }}
Loading