Skip to content

Add clang tidy workflow #1223

Add clang tidy workflow

Add clang tidy workflow #1223

Workflow file for this run

name: trigger gitlab job
on:
push:
branches: [main]
pull_request_target:
types: [labeled, opened, edited, synchronize, reopened]
branches: [main]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: trigger Job REF
if : ${{ github.event.push }}
env:
TOKEN: '${{ secrets.TOKEN }}'
run: curl --request POST --form "variables[COMBINE_TAG]=${{ github.sha }}" --form "variables[COMBINE_REPO]=${{ github.repository_owner }}" --form "token=${{ secrets.TOKEN }}" --form ref=master https://gitlab.cern.ch/api/v4/projects/cms-hcg%2Fperformances%2Fci/trigger/pipeline
- name: trigger Job PR
env:
TOKEN: '${{ secrets.TOKEN }}'
if: ${{ github.event.pull_request && contains(github.event.pull_request.labels.*.name, 'safe to test') }}
run: curl --request POST --form "variables[COMBINE_TAG]=${{ github.event.pull_request.base.ref }}" --form "variables[COMBINE_REPO]=${{ github.repository_owner }}" --form "variables[COMBINE_MERGE]=${{ github.event.pull_request.head.repo.owner.login}}/${{ github.event.pull_request.head.ref }}" --form "variables[GITHUB_PR]=${{ github.event.pull_request.number }}" --form "token=${{ secrets.TOKEN }}" --form ref=master https://gitlab.cern.ch/api/v4/projects/cms-hcg%2Fperformances%2Fci/trigger/pipeline