From 2dec89442c09408e7d74e35587931d4c8b7e2099 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 23 Aug 2023 14:37:37 +0200 Subject: [PATCH] Adds readme to js-action's glob The readme should be included in the tag as well. Otherwise when selecting an older version in the marketplace there is no readme displayed. See also here: https://github.com/JasonEtco/build-and-tag-action/pull/18#issuecomment-1386746993 --- src/glob-patterns.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glob-patterns.ts b/src/glob-patterns.ts index c0618eb..d1465af 100644 --- a/src/glob-patterns.ts +++ b/src/glob-patterns.ts @@ -3,8 +3,8 @@ import fs from 'node:fs'; import type { Arguments } from './types'; const templates: Record = { - 'composite-action': ['action.{yml,yaml}', 'LICENSE'], - 'javascript-action': ['action.{yml,yaml}', 'dist/**', 'LICENSE'], + 'composite-action': ['action.{yml,yaml}', 'LICENSE', 'README{,.md}'], + 'javascript-action': ['action.{yml,yaml}', 'dist/**', 'LICENSE', 'README{,.md}'], }; const extractNames = (input: string) =>