From 7512d30dc379a4a79e3b458bde9f2e85333ca483 Mon Sep 17 00:00:00 2001 From: Chai Feng Date: Tue, 8 Oct 2024 10:56:29 +0800 Subject: [PATCH] Trigger the pipeline only when *.example, *.js, or *.sh files are modified on the master branch --- .github/workflows/build-and-release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index d912718..abbd9b5 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -4,6 +4,10 @@ on: push: branches: - "master" + paths: + - '**/*.example' + - '**/*.js' + - '**/*.sh' schedule: - cron: "0 0 * * 0" @@ -32,4 +36,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} sha: ${{ github.sha }} run: | - gh release create "$(date '+%Y-%m-%d-')${sha:0:7}" --generate-notes ./proxy.pac + gh release create "$(date '+%Y-%m-%d-')${sha:0:7}" --generate-notes ./proxy.pac \ No newline at end of file