An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.
JavaScript aicursorcursor-aicursorailovablelovable-devroocodetask-managertaskstasks-listwindsurfwindsurf-ai
chore: fix claude codes updater workflow (#1544)
Ralph Khreish3f489d811609
diff --git a/.github/workflows/claude-docs-updater.yml b/.github/workflows/claude-docs-updater.ymlindex a6a4f1ee..454d2156 100644--- a/.github/workflows/claude-docs-updater.yml+++ b/.github/workflows/claude-docs-updater.yml@@ -26,20 +26,11 @@ jobs:permissions:contents: writepull-requests: write- issues: writesteps:- name: Checkout repositoryuses: actions/checkout@v4with:ref: next- fetch-depth: 0 # Need full history to checkout specific commit-- - name: Create docs update branch- id: create-branch- run: |- BRANCH_NAME="docs/auto-update-$(date +%Y%m%d-%H%M%S)"- git checkout -b $BRANCH_NAME- echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT- name: Run Claude Code to Update Documentationuses: anthropics/claude-code-action@v1@@ -79,47 +70,34 @@ jobs:Only make changes if the documentation truly needs updating based on the code changes.- - name: Check if changes were made- id: check-changes- run: |- if git diff --quiet; then- echo "has_changes=false" >> $GITHUB_OUTPUT- else- echo "has_changes=true" >> $GITHUB_OUTPUT- git add -A- git config --local user.email "github-actions[bot]@users.noreply.github.com"- git config --local user.name "github-actions[bot]"- git commit -m "docs: auto-update documentation based on changes in next branch+ - name: Create Pull Request+ uses: peter-evans/create-pull-request@v8+ with:+ token: ${{ secrets.GITHUB_TOKEN }}+ branch: docs/auto-update-${{ github.run_id }}+ base: next+ title: "docs: update documentation for recent changes"+ commit-message: |+ docs: auto-update documentation based on changes in next branchThis PR was automatically generated to update documentation based on recent changes.-- Original commit: ${{ inputs.commit_message }}-- Co-authored-by: Claude <[email protected]>"- fi- - name: Push changes and create PR- if: steps.check-changes.outputs.has_changes == 'true'- env:- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- run: |- git push origin ${{ steps.create-branch.outputs.branch_name }}+ Original commit: ${{ inputs.commit_message }}- # Create PR using GitHub CLI- gh pr create \- --title "docs: update documentation for recent changes" \- --body "## 📚 Documentation Update+ Co-authored-by: Claude <[email protected]>+ body: |+ ## 📚 Documentation Update- This PR automatically updates documentation based on recent changes merged to the \`next\` branch.+ This PR automatically updates documentation based on recent changes merged to the `next` branch.### Original Changes**Commit:** ${{ inputs.commit_sha }}**Message:** ${{ inputs.commit_message }}-+### Changed Files in Original Commit- \`\`\`+ ```${{ inputs.changed_files }}- \`\`\`+ ```### Documentation UpdatesThis PR includes documentation updates to reflect the changes above. Please review to ensure:@@ -129,8 +107,9 @@ jobs:- [ ] Style is consistent with existing documentation---- *This PR was automatically generated by Claude Code GitHub Action*" \- --base next \- --head ${{ steps.create-branch.outputs.branch_name }} \- --label "documentation" \- --label "automated"+ *This PR was automatically generated by Claude Code GitHub Action*+ labels: |+ documentation+ automated+ author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>+ delete-branch: true