Skip to content

Commit 6f5d433

Browse files
authored
Remove unnecessary checkouts from release jobs (#4806)
1 parent f0ea525 commit 6f5d433

3 files changed

Lines changed: 2 additions & 20 deletions

File tree

‎.github/workflows/publish-versions.yml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ jobs:
2626
env:
2727
VERSION: ${{ fromJson(inputs.plan).announcement_tag }}
2828
steps:
29-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
30-
with:
31-
persist-credentials: false
32-
3329
- name: "Set branch name"
3430
run: echo "BRANCH_NAME=update-versions-$VERSION-$(date +%s)" >> "$GITHUB_ENV"
3531

@@ -59,6 +55,7 @@ jobs:
5955
# renovate: datasource=github-release-attachments depName=astral-sh/uv
6056
version: "0.13.4"
6157
checksum: "2b428396f12572d4429cf210ca234dd599a33b3af0958a4d5ed569d63e3f344f"
58+
python-version: "3.13"
6259
enable-cache: false
6360

6461
- name: "Update versions"

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,6 @@ jobs:
393393
"contents": "read"
394394
"id-token": "write"
395395
steps:
396-
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
397-
with:
398-
persist-credentials: false
399-
submodules: recursive
400396
# Create a GitHub Release while uploading all files to it
401397
- name: "Download GitHub Artifacts"
402398
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
@@ -438,6 +434,7 @@ jobs:
438434
shell: bash
439435
env:
440436
GH_TOKEN: ${{ steps.release-token.outputs.token }}
437+
GH_REPO: ${{ github.repository }}
441438
PRERELEASE_FLAG: "${{ fromJson(needs.host.outputs.val).announcement_is_prerelease && '--prerelease' || '' }}"
442439
ANNOUNCEMENT_TITLE: "${{ fromJson(needs.host.outputs.val).announcement_title }}"
443440
ANNOUNCEMENT_BODY: "${{ fromJson(needs.host.outputs.val).announcement_github_body }}"

‎.github/workflows/sign-release-binaries.yml‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,6 @@ jobs:
214214
pypi-artifacts: ${{ steps.pypi-artifacts.outputs.artifact-id }}
215215
github-archives: ${{ steps.github-archives.outputs.artifact-id }}
216216
steps:
217-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
218-
with:
219-
persist-credentials: false
220-
221217
- name: "Download assembly inputs"
222218
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
223219
with:
@@ -312,10 +308,6 @@ jobs:
312308
env:
313309
TARGET: ${{ matrix.platform.target }}
314310
steps:
315-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
316-
with:
317-
persist-credentials: false
318-
319311
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
320312
with:
321313
cache: ""
@@ -378,10 +370,6 @@ jobs:
378370
env:
379371
TARGET: ${{ matrix.platform.target }}
380372
steps:
381-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
382-
with:
383-
persist-credentials: false
384-
385373
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
386374
with:
387375
cache: ""

0 commit comments

Comments
 (0)