From 122b8cab8414429bc66e6985a51af3871b088980 Mon Sep 17 00:00:00 2001 From: winston Date: Mon, 30 Jan 2023 08:27:32 +0100 Subject: [PATCH] ci: specify branch for push action & paths for action --- .github/workflows/readme.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index 550040a..4807067 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -1,12 +1,12 @@ -# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json - name: Generate READMEs on: push: - branches: [main] + paths: + - "resources/**" pull_request: - branches: [main] + paths: + - "resources/**" env: DENO_DIR: deno_cache @@ -16,8 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - - name: Git Checkout Deno Module - uses: actions/checkout@v3 + - uses: actions/checkout@v3 with: ref: ${{ github.head_ref }} - name: Set up Deno @@ -36,3 +35,5 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: "chore: re-generate README sections" + branch: ${{ github.head_ref }} +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json