2023-07-12 09:26:46 +00:00
|
|
|
name: "Update Firefox addons"
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
# Every week on Monday.
|
|
|
|
- cron: '0 0 * * 1'
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- 'pkgs/firefox-addons'
|
|
|
|
jobs:
|
2023-07-14 11:10:35 +00:00
|
|
|
update-firefox-addons:
|
2023-07-12 09:26:46 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
2023-07-19 07:35:31 +00:00
|
|
|
contents: write
|
2023-07-12 09:26:46 +00:00
|
|
|
steps:
|
|
|
|
- name: Set the date
|
|
|
|
id: metadata
|
|
|
|
run: echo "DATE=$(date +%F)" >> "$GITHUB_OUTPUT"
|
2023-09-14 10:34:13 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-14 07:37:19 +00:00
|
|
|
- uses: DeterminateSystems/nix-installer-action@v7
|
2023-07-12 09:26:46 +00:00
|
|
|
- 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
|
2023-10-14 07:32:17 +00:00
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
2023-07-12 09:26:46 +00:00
|
|
|
with:
|
2023-07-25 04:05:33 +00:00
|
|
|
commit_message: "firefox-addons: update as of ${{ steps.metadata.outputs.DATE }}"
|
2023-07-12 09:26:46 +00:00
|
|
|
file_pattern: pkgs/firefox-addons/
|