Replace shadow-git-inject with GitHub Actions commit hash injection#4
Draft
Replace shadow-git-inject with GitHub Actions commit hash injection#4
Conversation
Co-authored-by: aeone <321090+aeone@users.noreply.github.com>
Co-authored-by: aeone <321090+aeone@users.noreply.github.com>
Co-authored-by: aeone <321090+aeone@users.noreply.github.com>
Co-authored-by: aeone <321090+aeone@users.noreply.github.com>
Co-authored-by: aeone <321090+aeone@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix git version tag display on the page
Replace "git-version-tag-not-found" error with user-friendly fallback
Dec 11, 2025
Owner
|
@copilot What if instead of this we have our own setup where github actions can inject the commit hash in a way that it gets displayed in the relevant place in the website? |
Co-authored-by: aeone <321090+aeone@users.noreply.github.com>
Contributor
Author
Done! I've replaced shadow-git-inject with a simpler GitHub Actions approach (commit c6444d6). Changes:
Result:
|
Copilot
AI
changed the title
Replace "git-version-tag-not-found" error with user-friendly fallback
Replace shadow-git-inject with GitHub Actions commit hash injection
Dec 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The footer displays "git-version-tag-not-found" when
shadow-git-injectcannot find version tags in the repository. This PR replaces the shadow-git-inject dependency with a simpler approach where GitHub Actions directly injects the commit hash during build.Changes
day8/shadow-git-injectdependency and build hooks fromshadow-cljs.ednGIT_COMMIT_HASHenvironment variable with a default of "dev" for local builds${{ github.sha }}footer-versionfunction - no longer neededactions/checkoutfrom v2 to v4How It Works
c6444d6a7f8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d)This approach is simpler, more reliable, and removes the dependency on git tags or external libraries.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.