From ed1aafe645aea8be42a5498f4d58431af3251de7 Mon Sep 17 00:00:00 2001 From: blahai Date: Thu, 9 Jan 2025 17:28:51 +0200 Subject: [PATCH] Git: init --- .gitattributes | 3 +++ .github/workflows/flake-update.yml | 27 +++++++++++++++++++++++++++ .gitignore | 1 + .sops.yaml | 7 +++++++ 4 files changed, 38 insertions(+) create mode 100644 .gitattributes create mode 100644 .github/workflows/flake-update.yml create mode 100644 .gitignore create mode 100644 .sops.yaml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..cb2a0c9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +flake.lock -diff +*.css linguist-detectable=false +*.css linguist-generated=true diff --git a/.github/workflows/flake-update.yml b/.github/workflows/flake-update.yml new file mode 100644 index 0000000..40581f6 --- /dev/null +++ b/.github/workflows/flake-update.yml @@ -0,0 +1,27 @@ +name: "Update Flake Packages ❄️" +on: + workflow_dispatch: + schedule: + - cron: "5 0 * * *" +jobs: + updateFlakePackages: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install Nix + uses: cachix/install-nix-action@v30 + - name: Update flake packages + run: nix flake update + - name: Commit changes + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + if [[ $(git status --porcelain) ]]; then + git add flake.lock + git commit -m "Chore: update flake.lock" + git push + else + echo "No changes to commit" + fi + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2be92b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result diff --git a/.sops.yaml b/.sops.yaml new file mode 100644 index 0000000..32f442f --- /dev/null +++ b/.sops.yaml @@ -0,0 +1,7 @@ +keys: + - &primary age15lv6n403mscyyrfe9a059n5064ncse66taw89mpcf6ut55zfsq0qfh5n02 +creation_rules: + - path_regex: secrets/secrets.yaml$ + key_groups: + - age: + - *primary