We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82bcb79 commit 25efc42Copy full SHA for 25efc42
script.js
@@ -27,6 +27,11 @@ const isYamlFile = (fileName) => /\.ya?ml$/.test(fileName);
27
* @param {string} [options.cache] Select which package manager you want to use for caching
28
*/
29
export async function script(octokit, repository, { cache = "npm" }) {
30
+ if (repository.archived) {
31
+ octokit.log.info(`${repository.html_url} is archived, ignoring.`);
32
+ return;
33
+ }
34
+
35
// Global variables used throughout the code
36
const owner = repository.owner.login;
37
const repo = repository.name;
0 commit comments