Repository navigation
Refactor snippet imports and parsing logic #2
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
Closed
dyay108
wants to merge
5
commits into
mcsdodo:main
from
dyay108:feature/complex-snippet-directives-support
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f8ae819
Refactor snippet imports and parsing logic
dyay108 b2dd7ef
added workflow for this fork
dyay108 02cc7fd
regression fix: support multiple comma-separated snipptet import
dyay108 01d90ad
handled pr comments from code-rabbit
dyay108 bac36f8
Merge branch 'main' into feature/complex-snippet-directives-support
dyay108 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: Caddy Agent Github Image CI | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: [ "main"] | ||
| paths: | ||
| - Dockerfile | ||
| - caddy-agent-watch.py | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| packages: write # Required to push to GHCR | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
|
|
||
| - name: Log in to GitHub Container Registry | ||
| uses: docker/login-action@v2.2.0 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Docker meta | ||
| id: meta | ||
| uses: docker/metadata-action@v4.6.0 | ||
| with: | ||
| # Lowercase version of the repo name is standard for GHCR | ||
| images: | | ||
| ghcr.io/${{ github.repository }} | ||
| flavor: | | ||
| latest=auto | ||
| tags: | | ||
| type=raw,value=latest,enable={{is_default_branch}} | ||
| type=raw,value={{ date 'YYYYMMDD-HHmmss' }},prefix={{ sha }}- | ||
|
|
||
| - name: Build and push Docker image | ||
| uses: docker/build-push-action@v4.1.1 | ||
| with: | ||
| context: . | ||
| push: true | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
Oops, something went wrong.
Oops, something went wrong.
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.
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.
🧩 Analysis chain
🌐 Web query:
actions/checkout v3 deprecated GitHub Actions latest version 2025💡 Result:
actions/checkout@v3is effectively deprecated/legacy because it was built for the Node.js 16 GitHub Actions runtime, and GitHub completed the platform transition away from Node 16. GitHub began enforcing Node 20 by default on June 3, 2024 [2], and removed Node 16 from the Actions runner on November 12, 2024, so Node 16–based actions can no longer run [3].actions/checkoutmajor version (as of Feb 2026):v6. GitHub’s official repo/Marketplace docs show Checkout v6 as the current major version [1].Sources: official
actions/checkoutrepo/Marketplace page [1], GitHub Actions changelog (Node20 enforcement + Node16 end-of-life) [2][3].Update deprecated
actions/checkout@v3to latest version to fix workflow failure.actions/checkout@v3is deprecated because it relies on the Node.js 16 runtime, which GitHub removed from Actions runners on November 12, 2024. The workflow will fail at runtime without an update. The latest stable version isv6.🧰 Tools
🪛 actionlint (1.7.10)
[error] 19-19: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents