From 5daf17f7ff88313d53ecfb18172558f89c65502a Mon Sep 17 00:00:00 2001 From: Cameron Dutro Date: Thu, 19 Oct 2023 16:18:43 -0700 Subject: [PATCH] Only publish Rails docs for the current release --- gatsby-node.esm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatsby-node.esm.js b/gatsby-node.esm.js index 9c23dac30..e89a50d39 100644 --- a/gatsby-node.esm.js +++ b/gatsby-node.esm.js @@ -196,7 +196,7 @@ async function sourcePrimerRailsData({actions, createNodeId, createContentDigest actions.createNode(newNode) // Save the PVC data to the GraphQL store - const url = `https://api.github.com/repos/primer/view_components/contents/static/info_arch.json?ref=main` + const url = `https://api.github.com/repos/primer/view_components/contents/static/info_arch.json?ref=v${version}` const argsJson = await fetch(url).then(res => res.json()) const argsContent = JSON.parse(Buffer.from(argsJson.content, 'base64').toString())