Skip to content

feat: add optional cloudflare upload to Anaconda Live ISO workflow - #2959

Merged
castrojo merged 3 commits into
mainfrom
hanthor-patch-1
Aug 8, 2025
Merged

feat: add optional cloudflare upload to Anaconda Live ISO workflow#2959
castrojo merged 3 commits into
mainfrom
hanthor-patch-1

Conversation

@hanthor

@hanthor hanthor commented Aug 8, 2025

Copy link
Copy Markdown
Collaborator

so we don't have to upload to CF each time

Copilot AI review requested due to automatic review settings August 8, 2025 13:17
@dosubot dosubot Bot added size/S This PR changes 10-29 lines, ignoring generated files. github_actions labels Aug 8, 2025

Copilot AI 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.

Pull Request Overview

This PR adds optional control over artifact uploads in the Anaconda Live ISO workflow, allowing users to selectively enable/disable uploads to job artifacts and Cloudflare R2 storage when manually triggering the workflow.

  • Changed default image version from 'all' to 'lts' for workflow dispatch
  • Added boolean inputs for controlling artifact and R2 uploads with sensible defaults
  • Updated matrix logic to support dynamic image version selection based on workflow trigger
Comments suppressed due to low confidence (1)

.github/workflows/reusable-build-iso-anaconda.yml:47

  • This complex inline expression is difficult to read and maintain. Consider extracting this logic into a separate job step that outputs the appropriate matrix values, or break it into multiple conditions for better readability.
        image_version: ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.image_version == 'all' && fromJSON('["gts", "stable", "lts"]') || fromJSON(format('["{0}"]', github.event.inputs.image_version))) || fromJSON('["gts", "stable"]') }}


- name: Upload to CloudFlare
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || github.event.inputs.upload_r2)

Copilot AI Aug 8, 2025

Copy link

Choose a reason for hiding this comment

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

The condition logic could be simplified. When github.event_name is 'workflow_dispatch', the first part of the AND condition is always true, making it redundant. Consider simplifying to: github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || github.event.inputs.upload_r2 == 'true')

Copilot uses AI. Check for mistakes.
@castrojo
castrojo merged commit c545f22 into main Aug 8, 2025
7 of 13 checks passed
@castrojo
castrojo deleted the hanthor-patch-1 branch August 8, 2025 13:37
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size/S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants