diff --git a/index.ts b/index.ts index 491d68c..5b08fad 100644 --- a/index.ts +++ b/index.ts @@ -458,10 +458,9 @@ collect.set('isNewAction', [ 'https://github.com/sindresorhus/refined-github/actions/new', ]); -export const isRepositoryActions = (url: URL | Location = location): boolean => String(getRepoPath(url)).startsWith('actions'); +export const isRepositoryActions = (url: URL | Location = location): boolean => getRepoPath(url) === 'actions'; collect.set('isRepositoryActions', [ 'https://github.com/fregante/github-url-detection/actions', - 'https://github.com/sindresorhus/refined-github/actions/new', ]); export const canUserEditOrganization = (): boolean => isOrganizationProfile() && exists('.pagehead-tabs-item[href$="/settings/profile"]');