-
Notifications
You must be signed in to change notification settings - Fork 0
Resolve package names from the release workflow; unresolvable renders unknown (rainix#335) #178
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
Changes from 10 commits
bc8fc7d
b12ecb7
c74db7d
dd909a0
7d00720
cc82503
a8ce732
8b73277
9828e82
e614b5e
bddfbc5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -37,7 +37,7 @@ jobs: | |||||||||||||||||
| # Only the scan touches health.json, so rebasing onto the latest master | ||||||||||||||||||
| # and retrying is conflict-free and makes the race unable to fail the scan. | ||||||||||||||||||
| for attempt in 1 2 3 4 5; do | ||||||||||||||||||
| if git pull --rebase origin master && git push; then | ||||||||||||||||||
| if git pull --rebase origin "${GITHUB_REF_NAME}" && git push; then | ||||||||||||||||||
| exit 0 | ||||||||||||||||||
| fi | ||||||||||||||||||
| echo "push race (attempt ${attempt}/5) — rebased onto master, retrying…" | ||||||||||||||||||
|
Comment on lines
+40
to
43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Keep the retry message consistent with the selected ref. Line 40 now rebases from Proposed fix- echo "push race (attempt ${attempt}/5) — rebased onto master, retrying…"
+ echo "push race (attempt ${attempt}/5) — rebased onto ${GITHUB_REF_NAME}, retrying…"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: rainlanguage/rain-org-health
Length of output: 1003
🏁 Script executed:
Repository: rainlanguage/rain-org-health
Length of output: 2956
🌐 Web query:
GitHub Actions workflow_dispatch ref can be a branch or tag GITHUB_REF_NAME official documentation💡 Result:
Yes, when manually triggering a workflow via workflow_dispatch, the ref parameter can specify a branch, tag, or commit SHA [1][2]. When you trigger a workflow using the workflow_dispatch event, the GITHUB_REF_NAME environment variable will be set to the short name of the branch or tag that triggered the run [3]. Key details regarding this behavior: 1. Triggering Mechanism: While the workflow file itself must exist on the default branch for the workflow_dispatch event to be active [4][5], you can specify a different ref (branch, tag, or commit) when triggering the run via the GitHub CLI (gh workflow run --ref ) [4][5] or the REST API [2]. 2. Environment Variables: Once the workflow is running, GITHUB_REF_NAME will contain the short name of the ref you specified (e.g., your-feature-branch or v1.0.0) [3]. GITHUB_REF will contain the fully-formed reference (e.g., refs/heads/your-feature-branch or refs/tags/v1.0.0) [3]. 3. Context: These variables are officially documented and intended to represent the branch or tag that triggered the current workflow run [3].
Citations:
Handle non-branch
workflow_dispatchrefs before pushing.This workflow uses
scheduleandworkflow_dispatch. Manual runs can target a tag or commit SHA. In those runs,actions/checkoutuses a detachedHEAD, sogit pull --rebase origin "${GITHUB_REF_NAME}"and the baregit pushcan fail. ValidateGITHUB_REFbefore this step or use explicit branch checkout and push logic. The retry message also incorrectly saysmasterwhen the command uses${GITHUB_REF_NAME}.🤖 Prompt for AI Agents
Source: MCP tools