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: