From 9f4aa64f8b85508c8740e780de9d6b14ad5871f6 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 24 Oct 2024 15:35:10 -0700 Subject: [PATCH] #16 Constrain workflow trigger to changes to homelab/vyos/config.boot --- .gitea/workflows/vyos-deploy.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/vyos-deploy.yaml b/.gitea/workflows/vyos-deploy.yaml index d834e0c3..2d860af6 100644 --- a/.gitea/workflows/vyos-deploy.yaml +++ b/.gitea/workflows/vyos-deploy.yaml @@ -2,8 +2,8 @@ name: SSH and echo to file on: push: - branches: - - main + branches: [ main ] + paths: [ 'homelab/vyos/config.boot' ] jobs: ssh: @@ -16,4 +16,4 @@ jobs: username: vyos key: ${{ secrets.RUNNER_SSH_PRIVATEKEY }} script: | - echo "Hello, world!" >> ~/hello.txt + echo "$(date)" >> ~/hello.txt