mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
ci: add automation for updating Firefox addons
This commit is contained in:
parent
56e656aae3
commit
ae14d0c9c6
30
.github/workflows/update-firefox-addons.yml
vendored
Normal file
30
.github/workflows/update-firefox-addons.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
name: "Update Firefox addons"
|
||||
on:
|
||||
schedule:
|
||||
# Every week on Monday.
|
||||
- cron: '0 0 * * 1'
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'pkgs/firefox-addons'
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
content: write
|
||||
steps:
|
||||
- name: Set the date
|
||||
id: metadata
|
||||
run: echo "DATE=$(date +%F)" >> "$GITHUB_OUTPUT"
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v22
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- env:
|
||||
NIXPKGS_ALLOW_UNFREE: "1"
|
||||
run: nix develop --impure -c mozilla-addons-to-nix pkgs/firefox-addons/firefox-addons.json pkgs/firefox-addons/default.nix
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "pkgs/firefox-addons: update as of ${{ steps.metadata.outputs.DATE }}"
|
||||
file_pattern: pkgs/firefox-addons/
|
Loading…
Reference in New Issue
Block a user