From 3a3412876627343386097b1a1cc0a803ed55bf82 Mon Sep 17 00:00:00 2001 From: Hadi Date: Mon, 8 Jun 2026 14:15:49 +0200 Subject: [PATCH] =?UTF-8?q?=1B[37madd=20auto-update=20workflow=20via=20nix?= =?UTF-8?q?-update=1B[0m?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Weekly GitHub Action that opens a PR when new releases are available. Also bumps github-recon 1.5.3 → 1.5.6. --- .github/workflows/update.yml | 49 +++++++++++++++++++++++++++++++++++ pkgs/github-recon/default.nix | 4 +-- 2 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/update.yml diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 0000000..bb3fe20 --- /dev/null +++ b/.github/workflows/update.yml @@ -0,0 +1,49 @@ +name: Update packages + +on: + schedule: + - cron: '0 6 * * 1' + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: cachix/install-nix-action@v31 + with: + extra_nix_config: | + experimental-features = nix-command flakes + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + + - name: Update packages + run: | + python_pkgs=(toutatis ignorant ghunt user-scanner) + go_pkgs=(github-recon gravatar-recon spilltea usbguard-tui jwt-tui) + + for pkg in "${python_pkgs[@]}"; do + echo "==> $pkg" + nix run nixpkgs#nix-update -- --flake "$pkg" || true + done + + for pkg in "${go_pkgs[@]}"; do + echo "==> $pkg" + nix run nixpkgs#nix-update -- --flake --build "$pkg" || true + done + + - uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "auto-update: bump package versions" + title: "Auto-update packages" + body: | + Automated package updates via `nix-update`. + + Check individual diffs to see what changed. + branch: auto-update + delete-branch: true diff --git a/pkgs/github-recon/default.nix b/pkgs/github-recon/default.nix index eca814f..16dc75f 100644 --- a/pkgs/github-recon/default.nix +++ b/pkgs/github-recon/default.nix @@ -5,13 +5,13 @@ }: buildGoModule rec { pname = "github-recon"; - version = "1.5.3"; + version = "1.5.6"; src = fetchFromGitHub { owner = "anotherhadi"; repo = "github-recon"; rev = "v${version}"; - hash = "sha256-oHzXuxf4sikMcR+rB/1QZQytoNpFt9ZLMohWO4ZbK+0="; + hash = "sha256-5kbHFRfJpUk8qnfPxy6Ca65DtYOuI6Z8nwZiUWEK5dM="; }; vendorHash = "sha256-AD0h0k2n8gPqSBz5qqb0ZON/jWiSEWpeO97xR7cYSy8=";