Tmva sofie cms gnn #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: clang-tools code analysis | |
on: pull_request | |
# push: | |
# branches: [ $default-branch ] | |
# pull_request: | |
# branches: [ $default-branch ] | |
jobs: | |
clang-format: | |
runs-on: ubuntu-latest | |
env: | |
TRAVIS_BRANCH: ${{ github.base_ref }} | |
TRAVIS_PULL_REQUEST_BRANCH: ${{ github.head_ref }} | |
BASE_COMMIT: ${{ github.event.pull_request.base.sha }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fetch base_ref HEAD | |
run: git fetch --depth=1 origin +refs/heads/${{github.base_ref}}:refs/remotes/origin/${{github.base_ref}} | |
- name: install clang-format | |
run: sudo apt-get install -y clang-format | |
- name: run clang-format script | |
run: .ci/format_script.sh |