Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: store jqschema.sh as a file in the skill folder
Instead of generating jqschema.sh inline via a heredoc, the skill now
stores jqschema.sh as a real file at .github/skills/jqschema/jqschema.sh
and the setup step copies it to /tmp/gh-aw/jqschema.sh at runtime.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
  • Loading branch information
Copilot and pelikhan authored May 8, 2026
commit b31cc4c810d72215bc22d5bb4eeac8b9a094c942
17 changes: 1 addition & 16 deletions .github/skills/jqschema/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,7 @@ steps:
- name: Setup jq utilities directory
run: |
mkdir -p /tmp/gh-aw
cat > /tmp/gh-aw/jqschema.sh << 'EOF'
#!/usr/bin/env bash
# jqschema.sh
jq -c '
def walk(f):
. as $in |
if type == "object" then
reduce keys[] as $k ({}; . + {($k): ($in[$k] | walk(f))})
elif type == "array" then
if length == 0 then [] else [.[0] | walk(f)] end
else
type
end;
walk(.)
'
EOF
cp "$GITHUB_WORKSPACE/.github/skills/jqschema/jqschema.sh" /tmp/gh-aw/jqschema.sh
chmod +x /tmp/gh-aw/jqschema.sh
---

Expand Down
14 changes: 14 additions & 0 deletions .github/skills/jqschema/jqschema.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# jqschema.sh
jq -c '
def walk(f):
. as $in |
if type == "object" then
reduce keys[] as $k ({}; . + {($k): ($in[$k] | walk(f))})
elif type == "array" then
if length == 0 then [] else [.[0] | walk(f)] end
else
type
end;
walk(.)
'
31 changes: 17 additions & 14 deletions .github/workflows/api-consumption-report.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading