From 5faba2564baca3fb158c0679ff2dfa2f0c19b75b Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Sun, 7 Jul 2024 16:36:48 +0200 Subject: [PATCH] Apply upstream plugin template changes to project --- .cruft.json | 2 +- .github/workflows/main.yml | 10 ++++++---- .pre-commit-config.yaml | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.cruft.json b/.cruft.json index 9a9870f..c26dc00 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "https://github.com/getpelican/cookiecutter-pelican-plugin", - "commit": "f9a088515d09675d433595982ae643c3fe323c50", + "commit": "b4b9b4f83b624cfd7728a3f1527d272be28ee916", "checkout": null, "context": { "cookiecutter": { diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9ee8a2d..12012f4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,9 @@ on: [push, pull_request] env: PYTEST_ADDOPTS: "--color=yes" +permissions: + contents: read + jobs: test: name: Test - Python ${{ matrix.python-version }} @@ -66,8 +69,6 @@ jobs: steps: - uses: actions/checkout@v4 - with: - token: ${{ secrets.GH_TOKEN }} - name: Set up Python uses: actions/setup-python@v5 @@ -77,13 +78,14 @@ jobs: - name: Check release id: check_release run: | - python -m pip install autopub[github] + python -m pip install autopub httpx + python -m pip install https://github.com/scikit-build/github-release/archive/master.zip autopub check - name: Publish if: ${{ steps.check_release.outputs.autopub_release=='true' }} env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | autopub prepare autopub commit diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9cdbf84..82c5d8f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.0 + rev: v0.5.1 hooks: - id: ruff - id: ruff-format