Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix load-workflow-variables issue where config file cannot be found #348

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

gjonathanhong
Copy link
Contributor

@gjonathanhong gjonathanhong commented Sep 27, 2024

This change removes the ./ prefix from the input filepath before passing the value onto the following steps. If ./guardian.yml is provided, then this will be sanitized to guardian.yml.

This fixes an issue with load-workflow-variables action caused by providing a relative path for inputs.filepath, e.g. ./guardian.yml instead of guardian.yml. Passing this value to the sparse-checkout option of the Checkout step caused the action to not match with the guardian.yml file at the root of the repository, resulting in a file not found error in the Load Workflow Variables step.

@gjonathanhong gjonathanhong requested a review from a team as a code owner September 27, 2024 17:22
@gjonathanhong gjonathanhong requested review from Celdir, sailorlqh and verbanicm and removed request for Celdir and sailorlqh September 27, 2024 17:22
@gjonathanhong gjonathanhong merged commit 5e13298 into main Sep 27, 2024
2 checks passed
@gjonathanhong gjonathanhong deleted the jonathanhong/fix-load-workflow-variables branch September 27, 2024 17:51
@token-minter-prod token-minter-prod bot mentioned this pull request Sep 27, 2024
token-minter-prod bot added a commit that referenced this pull request Sep 27, 2024
## What's Changed
* fix: load workflow variables by @verbanicm in
#347
* Fix load-workflow-variables issue where config file cannot be found by
@gjonathanhong in #348


**Full Changelog**:
v1.1.3...v1.1.4

Co-authored-by: token-minter-prod[bot] <125072751+token-minter-prod[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants