Skip to content

Commit

Permalink
actions run on workflow dispatch or pr (#532)
Browse files Browse the repository at this point in the history
* actions run on workflow dispatch or pr

* removing now unnecessary if check
  • Loading branch information
K20shores committed May 29, 2024
1 parent 555be4e commit ee5c03e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Clang-Tidy

on: [push, pull_request]
on: [pull_request, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clang_format_non_inline.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Clang-Format

on: [push, pull_request]
on: [pull_request, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/docker_and_coverage.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: Docker

on: [push, pull_request]
on: [pull_request, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
docker-build-and-test:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
name: Build and Test - ${{ matrix.dockerfile }}
runs-on: ubuntu-latest
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Build and deploy documentation to GitHub Pages
name: GitHub Pages

on: [ push, pull_request ]
on: [pull_request, push]

env:
DEFAULT_BRANCH: "release"
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: Mac

on: [push, pull_request]
on: [pull_request, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
xcode_macos_12:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: macos-12
strategy:
matrix:
Expand All @@ -33,7 +32,6 @@ jobs:
ctest -C ${{ matrix.build_type }} --rerun-failed --output-on-failure . --verbose -j 10
xcode_macos_13:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: macos-13
strategy:
matrix:
Expand All @@ -58,7 +56,6 @@ jobs:
ctest -C ${{ matrix.build_type }} --rerun-failed --output-on-failure . --verbose -j 10
macos_lateset:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: macos-latest
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Ubuntu

on: [push, pull_request]
on: [pull_request, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Windows

on: [push, pull_request]
on: [pull_request, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
Expand Down

0 comments on commit ee5c03e

Please sign in to comment.