Trigger the pipeline only when *.example, *.js, or *.sh files are modified on the master branch

This commit is contained in:
Chai Feng 2024-10-08 10:56:29 +08:00
parent f4c7d5ff64
commit 7512d30dc3
No known key found for this signature in database
GPG Key ID: 2DCD9A24E523FFD2

View File

@ -4,6 +4,10 @@ on:
push: push:
branches: branches:
- "master" - "master"
paths:
- '**/*.example'
- '**/*.js'
- '**/*.sh'
schedule: schedule:
- cron: "0 0 * * 0" - cron: "0 0 * * 0"
@ -32,4 +36,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
sha: ${{ github.sha }} sha: ${{ github.sha }}
run: | 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