diff --git a/.github/workflows/update-opencode.yml b/.github/workflows/update-opencode.yml index 6c3bd6d..e2c2af6 100644 --- a/.github/workflows/update-opencode.yml +++ b/.github/workflows/update-opencode.yml @@ -10,6 +10,7 @@ concurrency: cancel-in-progress: false permissions: + actions: write contents: write pull-requests: write @@ -87,6 +88,17 @@ jobs: dependencies automated + # PRs created with GITHUB_TOKEN do not emit a pull_request event. Dispatch + # the required workflow explicitly against the exact update branch so its + # check/package-build contexts attach to the PR head SHA. + - name: Dispatch required checks + if: steps.check.outputs.update_needed == 'true' && steps.create-pr.outputs.pull-request-number + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh workflow run check.yml \ + --ref "update-opencode-${{ steps.check.outputs.latest }}" + - name: Enable auto-merge if: steps.check.outputs.update_needed == 'true' && steps.create-pr.outputs.pull-request-number env: diff --git a/packages/opencode/package.nix b/packages/opencode/package.nix index 680717f..54a51f1 100644 --- a/packages/opencode/package.nix +++ b/packages/opencode/package.nix @@ -21,7 +21,7 @@ }: stdenvNoCC.mkDerivation (finalAttrs: { pname = "opencode"; - version = "1.17.13"; + version = "1.18.3"; __structuredAttrs = true; strictDeps = true; @@ -30,7 +30,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { owner = "anomalyco"; repo = "opencode"; tag = "v${finalAttrs.version}"; - hash = "sha256-WE8+O+Od8M71fKoOOhE9CbTsJ0JMAi0ZajmYd//VG2k="; + hash = "sha256-Wdkzms59oHw3M/Em2RH7BPhZME8AtLmtNFSnsUxO1V4="; }; node_modules = stdenvNoCC.mkDerivation { @@ -85,7 +85,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { # NOTE: Required else we get errors that our fixed-output derivation references store paths dontFixup = true; - outputHash = "sha256-SUNfdHtASPh1mpxKvIKJ2GrDHAxmv7Gu7B7vr3PX5W4="; + outputHash = "sha256-1NUtprMH8GnSUqQ+mHQSC+JLU7lwzHe6XXYHe129WmE="; outputHashAlgo = "sha256"; outputHashMode = "recursive"; };