From 6a0ec7d38fcc848ecd54c7da2e5f2a94494f5834 Mon Sep 17 00:00:00 2001 From: Kai Martins-Turner Date: Tue, 26 Nov 2024 11:21:43 +0100 Subject: [PATCH] Update trigger for DTD deployment job. Run on merged PRs; fix syntax for target path. --- .github/workflows/deploy-dtds.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-dtds.yaml b/.github/workflows/deploy-dtds.yaml index bb48f61d27b..caf62f55141 100644 --- a/.github/workflows/deploy-dtds.yaml +++ b/.github/workflows/deploy-dtds.yaml @@ -1,14 +1,15 @@ name: deploy-dtds-on-website on: - push: - branches: - - master + pull_request: + types: + - closed paths: - - matsim/src/main/resources/dtd + - 'matsim/src/main/resources/dtd/**' jobs: rsync-dtds: + if: github.event.pull_request.merged == true // only if PR closed by merging name: sync DTDs to website runs-on: ubuntu-latest