Skip to content

fix(changelog-preview): Replace deleted install sub-action with inline install#706

Merged
BYK merged 1 commit intomasterfrom
fix/changelog-preview-install
Jan 12, 2026
Merged

fix(changelog-preview): Replace deleted install sub-action with inline install#706
BYK merged 1 commit intomasterfrom
fix/changelog-preview-install

Conversation

@BYK
Copy link
Member

@BYK BYK commented Jan 12, 2026

Problem

PR #705 removed the install/ sub-action, but the changelog-preview.yml workflow was still referencing it:

uses: getsentry/craft/install@master

This broke the changelog preview workflow for all PRs.

Solution

Replace the deleted sub-action reference with inline install logic that downloads Craft from release:

  • Respects craft-version input (defaults to latest)
  • Falls back to latest if specified version doesn't exist
  • Adds robust error handling with set -euo pipefail
  • Verifies download succeeded and binary is valid
  • Runs craft --version to confirm installation

Why No Dogfooding?

Unlike the main release action, this workflow does not dogfood (use build artifacts from PRs) because:

  1. Different workflow runs: The build workflow runs separately, and artifacts are scoped to that workflow run
  2. Complexity: Cross-workflow artifact fetching would require additional dependencies and logic
  3. Timing issues: Build workflow might still be running when changelog-preview starts
  4. Lower criticality: Changelog preview is less critical than the main release action

For changelog previews, we always use the released version of Craft.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 12, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Bug Fixes 🐛

  • (changelog-preview) Replace deleted install sub-action with inline install by BYK in #706

🤖 This preview updates automatically when you update the PR.

…e install

The install/ sub-action was removed in #705, breaking the changelog-preview
workflow which still referenced getsentry/craft/install@master.

Replace it with inline install logic that downloads from release:
- Respects craft-version input (defaults to latest)
- Falls back to latest if specified version not found
- Adds robust error handling with set -euo pipefail
- Verifies download succeeded and binary is valid
- Runs craft --version to confirm installation

Note: Dogfooding (using build artifact from PRs) is not implemented because:
- Build workflow runs separately with workflow-scoped artifacts
- Cross-workflow artifact fetching adds complexity
- Changelog preview is less critical than main release action
We always use released versions for changelog previews.
@BYK BYK force-pushed the fix/changelog-preview-install branch from 406a920 to 0c3bc8c Compare January 12, 2026 20:34
@BYK BYK enabled auto-merge (squash) January 12, 2026 20:37
@BYK BYK merged commit 299b509 into master Jan 12, 2026
17 checks passed
@BYK BYK deleted the fix/changelog-preview-install branch January 12, 2026 20:51
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.

2 participants