diff --git a/.changeset/swift-chicken-sip.md b/.changeset/swift-chicken-sip.md new file mode 100644 index 000000000..b92963cc0 --- /dev/null +++ b/.changeset/swift-chicken-sip.md @@ -0,0 +1,5 @@ +--- +"reusable-dependabump": patch +--- + +Support nix based port-bump-command diff --git a/.github/workflows/reusable-dependabump.yml b/.github/workflows/reusable-dependabump.yml index 785c0658a..058937423 100644 --- a/.github/workflows/reusable-dependabump.yml +++ b/.github/workflows/reusable-dependabump.yml @@ -67,6 +67,12 @@ jobs: dependabot && gomods tidy continue-on-error: true + - name: Install Nix + if: ${{ steps.bump.outcome == 'success' && contains(inputs.post-bump-command, 'nix') }} + uses: cachix/install-nix-action@02a151ada4993995686f9ed4f1be7cfbb229e56f # v31 + with: + nix_path: nixpkgs=channel:nixos-unstable + - name: Post-bump Command id: post-bump if: ${{ steps.bump.outcome == 'success' && inputs.post-bump-command != '' }} diff --git a/workflows/reusable-dependabump/reusable-dependabump.yml b/workflows/reusable-dependabump/reusable-dependabump.yml index af5eab437..503a32f43 100644 --- a/workflows/reusable-dependabump/reusable-dependabump.yml +++ b/workflows/reusable-dependabump/reusable-dependabump.yml @@ -63,6 +63,12 @@ jobs: dependabot && gomods tidy continue-on-error: true + - name: Install Nix + if: ${{ steps.bump.outcome == 'success' && contains(inputs.post-bump-command, 'nix') }} + uses: cachix/install-nix-action@02a151ada4993995686f9ed4f1be7cfbb229e56f # v31 + with: + nix_path: nixpkgs=channel:nixos-unstable + - name: Post-bump Command id: post-bump if: ${{ steps.bump.outcome == 'success' && inputs.post-bump-command != '' }}