Skip to content

Commit

Permalink
Only publish Rails docs for the current release (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
camertron authored Oct 20, 2023
1 parent 6e57649 commit dd9a704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby-node.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit dd9a704

Please sign in to comment.