File: includes.yml

package info (click to toggle)
quantlib 1.40-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 41,768 kB
  • sloc: cpp: 398,987; makefile: 6,574; python: 214; sh: 150; lisp: 86
file content (23 lines) | stat: -rw-r--r-- 812 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Fix inclusions of ql headers in double quotes
on:
  push:
    branches-ignore:
      - 'dependabot/**'
jobs:
  check-includes:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v5
    - name: Check
      run: |
        shopt -s globstar
        sed -i -E -e 's|#include *"(ql/.*\.hpp)"|#include <\1>|g' **/*.[hc]pp
    - uses: peter-evans/create-pull-request@v7
      with:
        token: ${{ secrets.MACHINE_ACCOUNT_PAT }}
        push-to-fork: ${{ vars.MACHINE_ACCOUNT }}/QuantLib
        branch: fix-include-in-quotes-${{ github.ref_name }}
        delete-branch: true
        commit-message: 'Fix inclusions of ql headers in double quotes'
        title: 'Fix inclusions of ql headers in double quotes'
        author: lballabio[bot] <224797326+lballabio-bot@users.noreply.github.com>