From 4465b7c44e902a0cbc4c814a37faa319f09743d9 Mon Sep 17 00:00:00 2001 From: billsioros Date: Sun, 21 May 2023 16:23:41 +0300 Subject: [PATCH] fix: enclose `secrets` in braces --- .github/workflows/ci.yml | 4 ++-- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/preview-docs.yml | 1 - .../.github/workflows/auto-approve.yml | 2 +- .../.github/workflows/auto-merge.yml | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c7072d4..5b32f01d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,13 +3,13 @@ on: push: branches: [master] paths: - - 'cookiecutter-pypackage/**/*.py' + - '{{\{\{cookiecutter.project_name\}\}' - 'tests/**/*.py' - 'pyproject.toml' pull_request: branches: [master] paths: - - 'cookiecutter-pypackage/**/*.py' + - '{{\{\{cookiecutter.project_name\}\}' - 'tests/**/*.py' - 'pyproject.toml' jobs: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 2aaf90df..bc4f1c9c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -8,13 +8,13 @@ on: push: branches: [master] paths: - - 'cookiecutter-pypackage/**/*.py' + - '{{\{\{cookiecutter.project_name\}\}' - 'pyproject.toml' pull_request: # The branches below must be a subset of the branches above branches: [master] paths: - - 'cookiecutter-pypackage/**/*.py' + - '{{\{\{cookiecutter.project_name\}\}' - 'pyproject.toml' schedule: - cron: "0 23 * * *" diff --git a/.github/workflows/preview-docs.yml b/.github/workflows/preview-docs.yml index 2e9b480a..b0d2efab 100644 --- a/.github/workflows/preview-docs.yml +++ b/.github/workflows/preview-docs.yml @@ -5,7 +5,6 @@ on: - master types: [opened, synchronize, reopened, closed] paths: - - 'cookiecutter-pypackage/**/*.py' - 'docs/**' - '*.md' jobs: diff --git a/{{cookiecutter.project_name}}/.github/workflows/auto-approve.yml b/{{cookiecutter.project_name}}/.github/workflows/auto-approve.yml index ef94af2c..f7df1d4f 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/auto-approve.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/auto-approve.yml @@ -29,4 +29,4 @@ jobs: github.actor == 'github-actions[bot]' ) with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ '{{' }} secrets.GITHUB_TOKEN {{ '}}' }} diff --git a/{{cookiecutter.project_name}}/.github/workflows/auto-merge.yml b/{{cookiecutter.project_name}}/.github/workflows/auto-merge.yml index 57b3bc9d..456cf5dc 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/auto-merge.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/auto-merge.yml @@ -18,7 +18,7 @@ jobs: - name: automerge uses: pascalgn/automerge-action@v0.15.6 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ '{{' }} secrets.GITHUB_TOKEN {{ '}}' }} MERGE_METHOD: "rebase" UPDATE_METHOD: "rebase" MERGE_RETRIES: "6"