-
-
Notifications
You must be signed in to change notification settings - Fork 2
Identify workflow failure caused by malformed URL in reusable workflow #169
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
Conversation
Co-authored-by: donavanbecker <[email protected]>
Co-authored-by: donavanbecker <[email protected]>
Co-authored-by: donavanbecker <[email protected]>
Co-authored-by: donavanbecker <[email protected]>
@copilot I don't want local scripts. So if I need to update a URL on this repo, then update it. If the URL is on the reusable workflow then let me know which one and I will update it. |
@copilot or if possible create an issue or pull request on the reusable workflow repo |
Co-authored-by: donavanbecker <[email protected]>
I've removed the local scripts as requested in commit 60aad60. The URL that needs updating is not in this repository - it's in the reusable workflow at
The issue can be fixed in the
|
I've identified the exact issue in the reusable workflow. The problem is in RAW_BASE_URL="https://raw.githubusercontent.com/homebridge/.github/latest/.github"
echo "Downloading $RAW_BASE_URL/$VERSION_SCRIPT" Since Fix needed: Change line 33 from: RAW_BASE_URL="https://raw.githubusercontent.com/homebridge/.github/latest/.github" to: RAW_BASE_URL="https://raw.githubusercontent.com/homebridge/.github/latest" I cannot directly create issues on the homebridge/.github repository, but you can create an issue there with this information. The fix is a simple one-line change that removes the extra |
The "Unified Release" workflow was failing due to a malformed URL construction in the reusable workflow
homebridge/.github/.github/workflows/update-version.yml
. The workflow attempts to download npm version scripts from:Notice the double
.github
in the path, which results in a 404 error. The correct URL should be:Root Cause Analysis
This repository's workflow (
.github/workflows/release.yml
) correctly references the external reusable workflow athomebridge/.github/.github/workflows/update-version.yml@latest
. The issue is not in this repository but in the reusable workflow itself.Upstream Fix Required
The root cause should be addressed in the
homebridge/.github
repository by correcting the URL construction in the reusable workflowupdate-version.yml
, either by:RAW_BASE_URL
from"https://raw.githubusercontent.com/homebridge/.github/latest/.github"
to"https://raw.githubusercontent.com/homebridge/.github/latest"
VERSION_SCRIPT
from".github/scripts/npm-version-script-esm-auto.js"
to"scripts/npm-version-script-esm-auto.js"
Testing
prepublishOnly
pipeline passes successfullyNo changes are required in this repository. The fix must be implemented in the
homebridge/.github
repository'supdate-version.yml
workflow.Fixes #167.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.