Commit b185c95

HPCesia <me@hpcesia.com>
2025-08-09 07:06:28
chore(ci): add update firefox addons workflow
1 parent 273df27
Changed files (2)
.github
home
linux
gui
firefox
.github/workflows/update-firefox-addons.yaml
@@ -0,0 +1,34 @@
+name: Update Firefox Addons
+
+on:
+  workflow_dispatch:
+
+  schedule:
+    - cron: "0 4 * * 1"
+
+jobs:
+  update-firefox-addons:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+      - uses: cachix/install-nix-action@v31
+        with:
+          nix_path: nixpkgs=channel:nixos-unstable
+          extra_nix_config: |
+            experimental-features = nix-command flakes
+      - name: Update addons
+        run: |
+          nix run github:nix-community/NUR#legacyPackages.x86_64-linux.repos.rycee.mozilla-addons-to-nix -- \
+          ./home/linux/gui/firefox/addons/addons.json \
+          ./home/linux/gui/firefox/addons/default.nix
+      - uses: peter-evans/create-pull-request@v6
+        with:
+          token: ${{ secrets.GITHUB_TOKEN }}
+          commit-author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
+          commit-message: "chore(firefox): update addons"
+          branch: "chore/update-firefox-addons-{random}"
+          title: "chore(firefox): Update Firefox Addons"
+          body: |
+            Automated update of Firefox addons.
+            This PR was generated by the `update-firefox-addons` GitHub Actions workflow.
+          labels: "automated, dependencies"
home/linux/gui/firefox/addons/addons.json
@@ -0,0 +1,6 @@
+[
+    {
+        "slug": "欧路翻译-网页划词翻译工具",
+        "pname": "lulu-translator"
+    }
+]
\ No newline at end of file