Skip to content

Commit

Permalink
Add workflow to detect inclusions in double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Jan 6, 2025
1 parent fec2aa0 commit 531611f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/includes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Fix inclusions of ql headers in double quotes
on:
push:
branches:
- '**'
jobs:
namespaces:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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.GITHUB_TOKEN }}
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: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

0 comments on commit 531611f

Please sign in to comment.