Skip to content

ci: add sync-plugin-version workflow#23

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

ci: add sync-plugin-version workflow#23
intel352 merged 1 commit into
mainfrom
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:55
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.

Pull request overview

Adds a GitHub Actions workflow to automatically keep plugin.json’s version in sync with v* git tags by opening a PR when drift is detected.

Changes:

  • Introduces a new sync-plugin-version workflow triggered on v* tag pushes.
  • Computes the version from the tag name and updates plugin.json if needed.
  • Pushes a branch and opens a PR back to main using gh pr create.

💡 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 +33 to +38
python3 -c "
import json
p = json.load(open('plugin.json'))
p['version'] = '$TARGET'
json.dump(p, open('plugin.json', 'w'), indent=2)
open('plugin.json', 'a').write('\n')
Comment on lines +14 to +16
ref: main
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
@intel352 intel352 merged commit 8c33ee7 into main May 14, 2026
13 checks passed
@intel352 intel352 deleted the chore/install-version-sync-workflow branch May 14, 2026 02:58
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