I have a workflow to bump our repo tag and it will be triggered once changes are coming from any files under production
folder. See my snippets below.
# bump-my-tag-version.yaml
name: Bump my tag version!
on:
push:
branches:
- 'master'
paths:
- '**/production'
- '!excluded_dir/production'
jobs:
bump-version:
runs-on: ubuntu-20.04
...
I have a few directories that has production
folder as seen below.
excluded_dir/production
included_A/some_dir/production
included_B/some1/some2/production
included_C/some1/some2/some3/production
When I merge my changes to my main branch (master
), it did not trigger the workflow. Which I expect it should because this filtering has already been implemented. See this post from GitHub.
Is this a bug or something is wrong with my implementation?