Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build-iso-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: ./.github/workflows/reusable-build-iso-anaconda.yml
secrets: inherit
with:
# Only upload artifacts if manually requested
upload_artifacts: ${{ github.event_name == 'workflow_dispatch' && inputs.upload_artifacts || false }}
# Upload to R2 if it's a scheduled run OR if manually requested
upload_r2: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.upload_r2) }}
# Upload artifacts on PR checks or if manually requested
upload_artifacts: ${{ github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && inputs.upload_artifacts) }}
# Upload to R2 on merge_group, scheduled runs, or if manually requested
upload_r2: ${{ github.event_name == 'merge_group' || github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.upload_r2) }}
6 changes: 3 additions & 3 deletions .github/workflows/reusable-build-iso-anaconda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,19 @@ jobs:
echo "output_directory=$OUTPUT_DIRECTORY" >> "${GITHUB_OUTPUT}"

- name: Upload to Job Artifacts
if: github.event_name == 'pull_request'
if: inputs.upload_artifacts
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: ${{ steps.image_ref.outputs.artifact_format }}
if-no-files-found: error
path: ${{ steps.rename.outputs.output_directory }}

- name: Install rclone
if: inputs.upload_r2 && github.event_name != 'pull_request'
if: inputs.upload_r2
run: /home/linuxbrew/.linuxbrew/bin/brew install rclone

- name: Upload to CloudFlare test bucket
if: inputs.upload_r2 && github.event_name != 'pull_request'
if: inputs.upload_r2
shell: bash
env:
RCLONE_CONFIG_R2_TYPE: s3
Expand Down