Sync Release Manifest #27
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
| # Auto-heals release-please manifest drift from git tags. Runs daily at 00:00 UTC | |
| # and via manual trigger. Creates PR when drift detected. Serves as fallback | |
| # when sync in release-please.yml misses drift. | |
| name: Sync Release Manifest | |
| on: | |
| schedule: | |
| # Run daily at 00:00 UTC | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: # Allow manual trigger | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| sync-manifest: | |
| name: Sync Manifest with Git Tags | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Sync manifest with tags | |
| id: sync | |
| uses: ./.github/actions/sync-manifest | |
| - name: Summary | |
| run: | | |
| if [ "${{ steps.sync.outputs.drift }}" == "true" ]; then | |
| echo "### Manifest Auto-Synced" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "- **Previous version:** ${{ steps.sync.outputs.manifest-version }}" >> $GITHUB_STEP_SUMMARY | |
| echo "- **Latest tag:** ${{ steps.sync.outputs.latest-version }}" >> $GITHUB_STEP_SUMMARY | |
| echo "- **Action:** Manifest updated automatically" >> $GITHUB_STEP_SUMMARY | |
| else | |
| echo "### Manifest In Sync" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "No action needed. Manifest matches latest tag." >> $GITHUB_STEP_SUMMARY | |
| fi |