Skip to content

Upgrade actions/checkout and actions/upload-artifact to v7 - #1371

Merged
EmeraldLoc merged 7 commits into
coop-deluxe:devfrom
Cooliokid956:action-upgrade
Aug 18, 2026
Merged

Upgrade actions/checkout and actions/upload-artifact to v7#1371
EmeraldLoc merged 7 commits into
coop-deluxe:devfrom
Cooliokid956:action-upgrade

Conversation

@Cooliokid956

Copy link
Copy Markdown
Contributor

This also allows to use the archive: false input for upload-artifact to prevent nested archives

and `archive: false` to prevent nested archives
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 21e7ff27-a44f-402c-b930-8e6208ac6e9a

📥 Commits

Reviewing files that changed from the base of the PR and between 20a1e34 and c6a53e6.

📒 Files selected for processing (1)
  • .github/workflows/build-coop.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/build-coop.yaml

📝 Walkthrough

Walkthrough

The workflow consolidates Windows, Linux, SteamOS, macOS ARM, and macOS Intel builds into one matrix-based job. Matrix values configure runners, dependencies, build commands, executable paths, and archive contents. Shared steps perform checkout, building, hashing, zipping, and artifact upload. SteamOS retains HANDHELD=1, and macOS retains code signing.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary change: upgrading checkout and upload-artifact actions to v7.
Description check ✅ Passed The description directly relates to the changes by explaining the use of archive: false with upload-artifact.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/build-coop.yaml:
- Around line 38-42: Update the upload-artifact steps in the build workflow to
preserve the configured platform artifact names: either rename each ZIP to the
corresponding configured name before upload or keep archive enabled so the name
field is honored. Apply this consistently to the Linux, SteamOS, Windows, macOS
ARM, and macOS Intel artifact uploads, and retain compatibility with existing
artifact consumers.
- Line 16: Update every actions/checkout step in the build workflow, including
the steps near lines 16, 49, 85, 128, and 184, to explicitly set
persist-credentials to false while preserving the existing checkout
configuration.
- Line 16: Add workflow-level least-privilege permissions in the build-coop
workflow by declaring contents: read for the default GITHUB_TOKEN scope. Review
each job for artifact uploads and grant only the additional uploader permission
required at that job level, without broadening unrelated permissions.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: dd183b12-2aa8-4019-8298-a9cc743f5171

📥 Commits

Reviewing files that changed from the base of the PR and between 3d4f8d7 and 1099d30.

📒 Files selected for processing (1)
  • .github/workflows/build-coop.yaml

Comment thread .github/workflows/build-coop.yaml Outdated
Comment thread .github/workflows/build-coop.yaml Outdated
@EmeraldLoc

Copy link
Copy Markdown
Collaborator

We shall see when the action run finishes, but there's a chance you'll need to not set archiving to false on macOS.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/build-coop.yaml:
- Around line 48-52: Update the build-coop workflow to consistently use the
defined matrix.platform key instead of matrix.plat across the job’s name,
runner, shell, steps, and conditions. Ensure defaults.run.shell has an explicit
valid fallback such as bash for non-Windows platform entries while preserving
the Windows shell selection.
- Around line 22-27: Split the combined [Linux, SteamOS] matrix entry into
separate Linux and SteamOS entries in the build matrix, giving each a scalar
name while preserving their shared os, deps, and zip values. Ensure the existing
matrix.plat.name-based job naming, ZIP naming, and HANDHELD condition receive
the correct platform name.
- Around line 44-47: Remove the invalid include block from the matrix
configuration in the build workflow and assign the make command directly to
every existing platform entry. Ensure each platform retains its required os and
zip values, and remove the trailing whitespace.
- Line 81: Update the build command in the workflow matrix run step to remove
the unsupported case() expression. Add HANDHELD=1 directly to the SteamOS make
value or replace it with a GitHub Actions-supported conditional expression,
while preserving the existing command for other platforms.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: fca4d4db-5f89-473d-866b-aad4a65abbe2

📥 Commits

Reviewing files that changed from the base of the PR and between 1099d30 and ecfeb2d.

📒 Files selected for processing (1)
  • .github/workflows/build-coop.yaml

Comment thread .github/workflows/build-coop.yaml Outdated
Comment thread .github/workflows/build-coop.yaml Outdated
Comment thread .github/workflows/build-coop.yaml Outdated
Comment thread .github/workflows/build-coop.yaml Outdated
@Cooliokid956

Copy link
Copy Markdown
Contributor Author

@coderabbitai resume

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
✅ Action performed

Reviews resumed.

@Squishy6094 Squishy6094 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Workflow looks really clean!

@EmeraldLoc
EmeraldLoc merged commit 8f26532 into coop-deluxe:dev Aug 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants