Skip to content

Commit

Permalink
Create update_meta.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DareFox authored Aug 6, 2023
1 parent 80d4eed commit bd6cfd9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/update_meta.yml
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

0 comments on commit bd6cfd9

Please sign in to comment.