File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,15 @@ jobs:
2424 with :
2525 fetch-depth : 2
2626 - name : Verify Changed files in docs
27- uses : tj-actions/verify-changed-files@fda469d6b456070da68fa3fdbc07a513d858b200 # v8.8
2827 id : verify-changed-files
29- with :
30- files : |
31- docs
28+ run : |
29+ if git diff --name-only HEAD~1 | grep '^docs/' > /dev/null; then
30+ echo "files_changed=true" >> $GITHUB_ENV
31+ else
32+ echo "files_changed=false" >> $GITHUB_ENV
33+ fi
3234 - name : update website
33- if : ${{ github.ref == 'refs/heads/main' && steps.verify-changed-files.outputs. files_changed == 'true'}}
35+ if : ${{ github.ref == 'refs/heads/main' && env. files_changed == 'true' }}
3436 uses : benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1
3537 with :
3638 workflow : github-pages
You can’t perform that action at this time.
0 commit comments