Skip to content

Commit 24b3f58

Browse files
committed
ci: generate llms-full.txt on push and commit back
1 parent 99280fc commit 24b3f58

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/repomix.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,26 @@ on:
66
workflow_dispatch:
77

88
permissions:
9-
contents: read
9+
contents: write
1010

1111
jobs:
1212
pack:
1313
runs-on: ubuntu-latest
14+
if: "!contains(github.event.head_commit.message, '[skip repomix]')"
1415
steps:
1516
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1617
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
1718
with:
1819
node-version: 22
19-
- run: npx -y repomix
20-
- uses: actions/upload-artifact@v4
21-
with:
22-
name: repomix-output
23-
path: repomix-output.xml
20+
- run: npx -y repomix --style markdown --output llms-full.txt --ignore llms-full.txt
21+
- name: Commit llms-full.txt
22+
run: |
23+
git config user.name "github-actions[bot]"
24+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
25+
git add llms-full.txt
26+
if git diff --cached --quiet; then
27+
echo "No changes to llms-full.txt"
28+
exit 0
29+
fi
30+
git commit -m "chore: regenerate llms-full.txt [skip repomix]"
31+
git push

0 commit comments

Comments
 (0)