Merge pull request #72 from kairi003/hotfix/support-browsers-unware-o… #3
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: Push firefox version | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'src/manifest.json' | |
workflow_dispatch: | |
jobs: | |
merge-manifests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Merge manifest files | |
run: | | |
jq -s '.[0] + .[1]' src/manifest.json src/manifest-firefox.json > /tmp/manifest.json | |
mv /tmp/manifest.json src/manifest.json | |
- name: Commit and push if needed | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add src/manifest.json | |
git commit -m "Update manifest.json for Firefox" || echo "No changes to commit" | |
git push origin master:firefox --force |