-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Update version in meta.json | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
replace-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- 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_example.json | ||
mv meta_example.json meta.json | ||
- name: Push changes to meta.json | ||
run: | | ||
git add meta.json | ||
git commit -m "Updated meta.json with latest release tag" | ||
git push |