I have a gh-action workflow that generates readme files and stores them in the repository's docs folder.
I have another workflow that deploys page-builds and should be triggered if any changes occur in any README
files in the doc folder.
But the second workflow does not trigger even after the first workflow creates new README
files and updates the previous ones.
build workflow
name: build
on:
workflow_dispatch:
schedule:
- cron: "0 */6 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v3
...
- name: push changes
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master
deploy workflow
name: deploy
on:
push:
branches:
- master
paths:
- docs/**/*.md
workflow_dispatch:
...