Skip to content

ci: add sync-plugin-version workflow#12

Merged
intel352 merged 1 commit into
masterfrom
chore/install-version-sync-workflow
May 14, 2026
Merged

ci: add sync-plugin-version workflow#12
intel352 merged 1 commit into
masterfrom
chore/install-version-sync-workflow

Conversation

@intel352
Copy link
Copy Markdown
Contributor

Installs .github/workflows/sync-plugin-version.yml which auto-bumps plugin.json version to match the git tag on every v* tag push. Prevents plugin.json/tag drift. Closes GoCodeAlone/workflow-registry#37.

Copilot AI review requested due to automatic review settings May 14, 2026 02:57
@intel352 intel352 merged commit 4d524a0 into master May 14, 2026
8 checks passed
@intel352 intel352 deleted the chore/install-version-sync-workflow branch May 14, 2026 02:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +25 to +36
run: |
if [ ! -f plugin.json ]; then echo "no plugin.json; skipping"; exit 0; fi
CURRENT=$(python3 -c "import json; print(json.load(open('plugin.json')).get('version',''))")
TARGET="${{ steps.ver.outputs.version }}"
if [ "$CURRENT" = "$TARGET" ]; then
echo "plugin.json already at $TARGET; no action"
exit 0
fi
python3 -c "
import json
p = json.load(open('plugin.json'))
p['version'] = '$TARGET'
Comment on lines +12 to +16
- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
Comment on lines +53 to +59
gh pr create \
--base main \
--head "$BRANCH" \
--title "chore: sync plugin.json version to ${{ steps.ver.outputs.tag }}" \
--body "Triggered by release ${{ steps.ver.outputs.tag }}. Auto-sync to prevent drift. Closes workflow-registry#37."
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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.

Add release-automation to keep plugin.json + registry manifests in sync with git tags

2 participants