From bf9ac68fed71bb5c1d584bebb433d14eb233c633 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Fri, 4 Apr 2025 14:03:23 +0100 Subject: [PATCH] Skip align-versions workflow (#5766) * Skip align-versions workflow on forks * Update repo link in local.txt * Update condition to restrict on GitHub actor --- .github/workflows/align-versions.yml | 1 + {{cookiecutter.project_slug}}/requirements/local.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/align-versions.yml b/.github/workflows/align-versions.yml index 2ded34062..6444aa972 100644 --- a/.github/workflows/align-versions.yml +++ b/.github/workflows/align-versions.yml @@ -14,6 +14,7 @@ permissions: jobs: run: + if: ${{ github.actor == 'pyup-bot' }} runs-on: ubuntu-latest env: GH_PAT: ${{ secrets.GH_PAT }} diff --git a/{{cookiecutter.project_slug}}/requirements/local.txt b/{{cookiecutter.project_slug}}/requirements/local.txt index feafd67d2..e606fcd5f 100644 --- a/{{cookiecutter.project_slug}}/requirements/local.txt +++ b/{{cookiecutter.project_slug}}/requirements/local.txt @@ -16,7 +16,7 @@ watchfiles==1.0.4 # https://github.com/samuelcolvin/watchfiles mypy==1.15.0 # https://github.com/python/mypy django-stubs[compatible-mypy]==5.1.3 # https://github.com/typeddjango/django-stubs pytest==8.3.5 # https://github.com/pytest-dev/pytest -pytest-sugar==1.0.0 # https://github.com/Frozenball/pytest-sugar +pytest-sugar==1.0.0 # https://github.com/Teemu/pytest-sugar {%- if cookiecutter.use_drf == "y" %} djangorestframework-stubs==3.15.3 # https://github.com/typeddjango/djangorestframework-stubs {%- endif %}