From 532b657a67d0d18ada9de0a06d7d3e82d747da17 Mon Sep 17 00:00:00 2001 From: KP64 Date: Tue, 3 Dec 2024 15:11:58 +0100 Subject: [PATCH] add: lychee action --- .github/workflows/links.yml | 29 +++++++++++++++++++++++++++++ desktop/eww/conf/scripts/getvol.sh | 2 +- hosts/rs/configuration.nix | 2 +- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/links.yml diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml new file mode 100644 index 0000000..bed86df --- /dev/null +++ b/.github/workflows/links.yml @@ -0,0 +1,29 @@ +name: Links + +on: + repository_dispatch: + workflow_dispatch: + schedule: + - cron: "00 18 * * *" + +jobs: + linkChecker: + runs-on: ubuntu-latest + permissions: + issues: write # required for peter-evans/create-issue-from-file + steps: + - uses: actions/checkout@v4 + + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v2 + with: + fail: false + + - name: Create Issue From File + if: steps.lychee.outputs.exit_code != 0 + uses: peter-evans/create-issue-from-file@v5 + with: + title: Link Checker Report + content-filepath: ./lychee/out.md + labels: report, automated issue diff --git a/desktop/eww/conf/scripts/getvol.sh b/desktop/eww/conf/scripts/getvol.sh index 3075822..13e2a07 100755 --- a/desktop/eww/conf/scripts/getvol.sh +++ b/desktop/eww/conf/scripts/getvol.sh @@ -1,6 +1,6 @@ #!/usr/bin/env -S nix shell nixpkgs#bash nixpkgs#pamixer --command bash -if [ $(pamixer --get-mute) == true ]; then +if [ "$(pamixer --get-mute)" == true ]; then echo 0 exit else diff --git a/hosts/rs/configuration.nix b/hosts/rs/configuration.nix index e75969f..5bae64c 100644 --- a/hosts/rs/configuration.nix +++ b/hosts/rs/configuration.nix @@ -260,7 +260,7 @@ users.users.${username} = { hashedPasswordFile = config.sops.secrets.hashed_password.path; openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAgE5a4Wn4S/to9Z3QbQSDMyCOG/NAOWYJDEvAy4OdFf kg@kg" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKVc2eK6Ql+DtJ2D2asHMo8S0HUc8/2ar8wZVkm/ezsn kg@kg" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAD+mYDOwD6lR89dpPCprEDTBIBNKgjzb6sqoGCHOYl7 kg@LapT" ]; extraGroups = [