Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
997e84f
Test run actions only on certain paths
wl-spaceline Dec 20, 2025
3ab2658
Adding gitkeep on folder1. This should trigger path1 workflow
wl-spaceline Dec 20, 2025
086da26
Trying to remove branches from the workflow
wl-spaceline Dec 20, 2025
210edcf
Add README.md in path 1
wl-spaceline Dec 20, 2025
7710e8c
Add README.md in path 1
wl-spaceline Dec 20, 2025
829ac9d
Fix workflow by adding branch and checkout action
wl-spaceline Dec 20, 2025
a223596
Update README.md on path 1
wl-spaceline Dec 20, 2025
59f0275
Add something to path 2
wl-spaceline Dec 20, 2025
2c054a3
Try only push...
wl-spaceline Dec 20, 2025
4e91f0a
Keep only push on main and paths
wl-spaceline Dec 20, 2025
d26807a
Only path on push, no branches...
wl-spaceline Dec 20, 2025
1359f61
Start fixing path2 workflow...
wl-spaceline Dec 20, 2025
6bb9b87
Fix path filter on path2 workflow
wl-spaceline Dec 20, 2025
d95bf27
No run on path3
wl-spaceline Dec 20, 2025
c3f6276
Adding branches and PR again on path1 workflow
wl-spaceline Dec 20, 2025
2e7813f
Adding something to path3. No workflow is expected...
wl-spaceline Dec 20, 2025
086152f
Remove PR from path1 but push on any branch. No workflow is expected …
wl-spaceline Dec 20, 2025
1043e63
Great success!
wl-spaceline Dec 20, 2025
0fa3665
Align path2 with path1
wl-spaceline Dec 20, 2025
843de13
Add some nested path to path1
wl-spaceline Dec 20, 2025
448ce8d
Add some nested path to path1
wl-spaceline Jan 7, 2026
421443a
Update other workflows with ignore path
wl-spaceline Mar 2, 2026
95efc91
Dummy change to test workflow trigger
wl-spaceline Mar 2, 2026
2272dee
Run path 1 only
wl-spaceline Mar 2, 2026
d5e0625
ONLY PATH1!!!
wl-spaceline Mar 2, 2026
fab475b
Why it runs also cmake workflow???
wl-spaceline Mar 2, 2026
34ceceb
Try to fix pull_request workflow...
wl-spaceline Mar 2, 2026
90eb2ce
Remove pr trigger...
wl-spaceline Mar 2, 2026
1bb70e4
Remove push branch
wl-spaceline Mar 2, 2026
7e26e8b
Only path2....
wl-spaceline Mar 2, 2026
b9f3da9
Path 1_3 -> Path 1 workflow...
wl-spaceline Mar 2, 2026
61ae8b8
No workflow??
wl-spaceline Mar 2, 2026
ab333a9
No run at all!?
wl-spaceline Mar 2, 2026
7eae660
Cmake flow maybe now...
wl-spaceline Mar 2, 2026
128043e
Recover branhch on push
wl-spaceline Mar 2, 2026
3d84b5b
No run expected
wl-spaceline Mar 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ name: CMake on a single platform
on:
push:
branches: [ "main" ]
paths-ignore:
- run_path_*/**
pull_request:
branches: [ "main" ]
paths-ignore:
- run_path_*/**

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/docker-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Action CI
on: [push]
on:
push:
paths-ignore:
- run_path_*/**

jobs:
ci:
runs-on: ubuntu-latest
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/path1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run on path1
on:
push:
branches:
- '**'
paths:
- 'run_path_1/**'
# pull_request:
# branches:
# - 'main'
# paths:
# - 'run_path_1/**'

jobs:
list_files:
name: List file on folder 1
runs-on: ubuntu-latest

steps:
- name: Checking out repo
uses: actions/checkout@v5

- name: "List files on folder 1"
run: ls -la run_path_1


22 changes: 22 additions & 0 deletions .github/workflows/path2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Run on path2
on:
push:
branches:
- '**'
paths:
- 'run_path_2/**'

jobs:
list_files:
name: List file on folder 2
runs-on: ubuntu-latest

steps:
- name: Checking out repo
uses: actions/checkout@v5

- name: "List files on folder 2"
run: ls -la run_path_2



4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# git-actions-sandbox
Sandbox for playing aroud with git actions stuff

A dummy change to test workflow trigger...

This should not run cmake workflow....
18 changes: 18 additions & 0 deletions run_path_1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Workflow on path 1

I want to trigger workflow on path 1

Trying to fix path on workflow...
- That worked... but I have two workflows, one for commit and one for PR

Adding checkout action worked!!!

Not good... Changing path1 workflow to not listen on PRs, but only on push...

Remove push on branch...

Adding branches and PR again on path1 workflow

I expect to run path1 workflow **ONLY**

Why it runs also cmake workflow???
3 changes: 3 additions & 0 deletions run_path_1/path_1_1/path_1_2/path_1_3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Path_3

Nothing????
11 changes: 11 additions & 0 deletions run_path_2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Test workflow on path 2

Test if path1 is triggered on path 1.

Not good... Changing path1 workflow to not listen on PRs, but only on push...

Try to fix path2

Fix path filter on path2 workflow...

Only path2...
13 changes: 13 additions & 0 deletions run_path_3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Folder 3

No run is monitored by this folder...

Adding something to folder 3, should not trigger path1 workflow because of both branch and paths.

Remove PR from path1 but keeping push on ANY branch and path... No workflow run expected since this is on folder 3.

It seems I nailed it down!!!

No workflow no....

No run expected