in src/index.ts [30:43]
function validateTopics(topics: string[]): void {
const deployableTopics = ['production', 'hackday', 'prototype', 'learning'];
const hasValidTopic = topics.some((topic) =>
deployableTopics.includes(topic),
);
if (!hasValidTopic) {
const topicList = deployableTopics.join(', ');
throw new RiffRaffUploadError(
`No valid repository topic found. Add one of ${topicList}. See https://github.com/guardian/recommendations/blob/main/github.md#topics`,
);
} else {
core.info('Valid topic found');
}
}