Update blocklist #38
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: "Update blocklist" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '7 5 * * 1' # every monday morning | |
jobs: | |
update: | |
name: Update Flake | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PAT }} | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Update StevenBlack repo ref | |
run: nix run nixpkgs#update-nix-fetchgit flake.nix | |
- name: Update flake deps | |
run: nix flake update | |
- name: Check that it still builds | |
run: nix build . | |
- name: Commit changes | |
run : | | |
git config --global user.name 'Update Bot' | |
git config --global user.email 'mirosval@users.noreply.github.com' | |
git commit -am "Update Blocklist to the latest version" | |
git tag -a $(date +"v%Y.%-m.%-d") -m "Rolling version" | |
git push origin main --follow-tags |