Skip to content

Conversation

@OskarStark
Copy link
Contributor

Summary

  • Added automated workflow to check for new fabric releases daily
  • Creates PR automatically when updates are available
  • Tags new minor release when update PR is merged

Implementation Details

update-fabric.yml

  • Runs daily at 2 AM UTC (or manually triggered)
  • Fetches latest release from danielmiessler/fabric GitHub API
  • Compares with current version in composer.json
  • If newer version exists:
    • Updates composer.json with new version and URL
    • Runs composer update to refresh lock file
    • Creates PR with changes

tag-release.yml

  • Triggers when PR with fabric update is merged
  • Automatically increments minor version (e.g., v0.1.0 → v0.2.0)
  • Creates annotated git tag
  • Creates GitHub release with changelog

Benefits

  • Keeps fabric dependency up-to-date automatically
  • Maintains semantic versioning for the package
  • Reduces manual maintenance burden
  • Provides clear audit trail through PRs

🤖 Generated with Claude Code

OskarStark and others added 2 commits June 30, 2025 08:24
- Add workflow to check for new fabric releases daily
- Automatically create PR when new version is available
- Add workflow to tag new minor release when PR is merged
- Updates composer.json and composer.lock automatically

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link
Member

@chr-hertel chr-hertel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I'm excited for tonight - let's see!

Thanks @OskarStark & Claude :D

@chr-hertel chr-hertel merged commit 2b9cb98 into main Jul 4, 2025
@chr-hertel chr-hertel deleted the feat/auto-update-fabric branch July 4, 2025 20:48
@OskarStark
Copy link
Contributor Author

Same here 😄

@chr-hertel
Copy link
Member

Okay, it didn't work - permissions missing:
https://github.com/php-llm/fabric-pattern/actions/runs/16083932238

@chr-hertel
Copy link
Member

Changed org and repo settings - let's hope for tonight :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants