set file change check in docs deployment workflow

This commit is contained in:
mahula 2024-02-22 12:03:33 +01:00
parent a35fc94a12
commit 6bd3ab08c8

View File

@ -6,8 +6,26 @@ on:
- master
jobs:
files-changed:
name: Detect File Changes
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.changes.outputs.e2e-docs }}
steps:
- uses: actions/checkout@master
- name: Check for e2e docs file changes
uses: dorny/paths-filter@v3.0.1
id: changes
with:
token: ${{ github.token }}
filters: .github/file-filters.yml
list-files: shell
build-and-deploy:
if: needs.files-changed.outputs.changes == 'true'
name: Deploy Docs - E2E Testing
needs: files-changed
runs-on: ubuntu-latest
steps:
- name: Checkout