Skip to content

fix: propagate working-directory input to all composite action steps#25

Merged
thymikee merged 1 commit intocallstackincubator:mainfrom
jbroma:fix/working-directory-propagation
Apr 13, 2026
Merged

fix: propagate working-directory input to all composite action steps#25
thymikee merged 1 commit intocallstackincubator:mainfrom
jbroma:fix/working-directory-propagation

Conversation

@jbroma
Copy link
Copy Markdown
Contributor

@jbroma jbroma commented Apr 13, 2026

Summary

The working-directory input is accepted by the action but was not propagated to 10 out of ~20 composite steps. Any step that runs npx rock remote-cache ... or touches .rock/cache with a relative path would fail with rock.config not found when the consuming repo's app lives in a subdirectory (i.e. working-directory != .).

Steps fixed (added working-directory: ${{ inputs.working-directory }}):

  • Populate GitHub Token in Cache
  • Check if PR-related artifact exists
  • Check if regular artifact exists
  • Find Build Artifact
  • Download and Unpack Binary
  • Find artifact URL again before uploading
  • Upload re-signed ZIP Artifact for non-ad-hoc flow
  • Upload ZIP Artifact for caching
  • Upload for Ad-hoc distribution
  • Delete Old Re-Signed Artifacts

Steps that were already correct (had working-directory or don't need it) were left untouched.

Closes #24

Several steps that run `npx rock remote-cache` or touch `.rock/cache`
were missing `working-directory`, causing `rock.config not found` errors
when the app is in a subdirectory.

Closes callstackincubator#24
jbroma added a commit to jbroma/module-federation-core that referenced this pull request Apr 13, 2026
Copy link
Copy Markdown
Contributor

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

Thanks!

@thymikee thymikee merged commit 599c4a7 into callstackincubator:main Apr 13, 2026
1 check 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.

working-directory not propagated to all composite action steps

2 participants