Merge pull request #40 from Fiszh/dependabot/npm_and_yarn/app/lucide-… #108
This file contains hidden or 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 App Version | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| branches: ["main"] | |
| jobs: | |
| sync-version: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: true | |
| - name: Read version from package.json | |
| id: get_version | |
| run: | | |
| VERSION=$(node -p "require('./app/package.json').version") | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| - name: Update manifest.json | |
| run: | | |
| echo "{\"version\":\"${{ steps.get_version.outputs.version }}\"}" > app/static/manifest.json | |
| git config user.name "github-actions" | |
| git config user.email "[email protected]" | |
| git add app/static/manifest.json | |
| git diff --cached --quiet || git commit -m "Sync manifest.json version to ${{ steps.get_version.outputs.version }} [skip ci]" | |
| git push |