From f0890b102fd82973b7b8c932a93087d9c1a52eb9 Mon Sep 17 00:00:00 2001 From: Stephen Kent Date: Tue, 20 Oct 2026 18:45:11 -0700 Subject: [PATCH] Remove repository checkout from Github release creation job --- .../{% if enable_pypi %}release.yaml{% endif %}.jinja | 6 +----- tests/template/__snapshots__/test_workflows.ambr | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_pypi %}release.yaml{% endif %}.jinja b/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_pypi %}release.yaml{% endif %}.jinja index 7b924bc..ad4e323 100644 --- a/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_pypi %}release.yaml{% endif %}.jinja +++ b/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_pypi %}release.yaml{% endif %}.jinja @@ -48,11 +48,6 @@ jobs: permissions: contents: write steps: - - name: 💾 Check out repository - uses: actions/checkout@v7 - with: - fetch-depth: 0 - - name: 🔽 Download artifact uses: actions/download-artifact@v8 with: @@ -62,6 +57,7 @@ jobs: - name: 🏷️ Create GitHub release run: gh release create {% raw %}${{ github.ref_name }}{% endraw %} dist/* --generate-notes env: + GH_REPO: {% raw %}${{ github.repository }}{% endraw %} GH_TOKEN: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} {%- if enable_pypi %} diff --git a/tests/template/__snapshots__/test_workflows.ambr b/tests/template/__snapshots__/test_workflows.ambr index 8876544..6f671d4 100644 --- a/tests/template/__snapshots__/test_workflows.ambr +++ b/tests/template/__snapshots__/test_workflows.ambr @@ -1576,11 +1576,6 @@ permissions: contents: write steps: - - name: 💾 Check out repository - uses: actions/checkout@v7 - with: - fetch-depth: 0 - - name: 🔽 Download artifact uses: actions/download-artifact@v8 with: @@ -1590,6 +1585,7 @@ - name: 🏷️ Create GitHub release run: gh release create ${{ github.ref_name }} dist/* --generate-notes env: + GH_REPO: ${{ github.repository }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} publish: