summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/cmake.yml3
-rw-r--r--.github/workflows/main.yml26
2 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index ab9bfd0..c0a22eb 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -5,6 +5,9 @@ name: Short-Tests-CMake
on:
# Triggers the workflow on push or pull request events but only for the mydev branch
push:
+ branches-ignore:
+ - "gh-readonly-queue**"
+ merge_group:
pull_request:
# Allows you to run this workflow manually from the Actions tab
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index c639ff3..39f65c9 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -6,6 +6,9 @@ name: Short-Tests
on:
# Triggers the workflow on push or pull request events but only for the mydev branch
push:
+ branches-ignore:
+ - "gh-readonly-queue**"
+ merge_group:
pull_request:
# Allows you to run this workflow manually from the Actions tab
@@ -82,3 +85,26 @@ jobs:
- uses: actions/checkout@v4
- name: Run Simulation
run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh
+ format-code:
+ runs-on: ubuntu-latest
+ needs: [build-TITANV, build-TITANV-LOCALXBAR, build-QV100, build-2060, build-3070]
+ permissions:
+ # Give the default GITHUB_TOKEN write permission to commit and push the
+ # added or changed files to the repository.
+ contents: write
+ steps:
+ - uses: actions/checkout@v4
+ # Other steps that change files in the repository go here
+ # …
+ - name: Run clang-format
+ run: |
+ sudo apt-get install -y clang-format
+ /bin/bash ./format-code.sh
+ - uses: stefanzweifel/git-auto-commit-action@v5
+ with:
+ # Optional. Commit message for the created commit.
+ # Defaults to "Apply automatic changes"
+ commit_message: Automated clang-format
+ # Optional. Option used by `git-status` to determine if the repository is
+ # dirty. See https://git-scm.com/docs/git-status#_options
+ status_options: '--untracked-files=no' \ No newline at end of file