Update version in meta.json #7
Workflow file for this run
This file contains 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
name: Update version in meta.json | |
permissions: | |
contents: write | |
on: | |
release: | |
types: [published] | |
jobs: | |
replace-version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.repository.default_branch }} | |
- name: Replace VERSION_HERE in meta.json | |
run: | | |
echo "Replacing VERSION_HERE in meta.json..." | |
sed -i "s/VERSION_HERE/$(echo "$GITHUB_REF_NAME")/g" meta_template.json | |
mv meta_template.json meta.json | |
- name: Push changes to meta.json | |
run: | | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "GitHub Actions" | |
git add meta.json | |
git commit -m "Updated meta.json with latest release tag" | |
git push |