Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Updated language detector to add Github Actions support by default

## [2.0.1]

### Fixed
Expand Down
4 changes: 4 additions & 0 deletions packages/language-detector/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Updated job configurator to add Github Actions support by default

## [2.0.1]

### Fixed
Expand Down
5 changes: 3 additions & 2 deletions packages/language-detector/src/job-configurator.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const DEFAULT_CONFIGS = {
cpp: { language: 'cpp' },
csharp: { language: 'csharp' },
ruby: { language: 'ruby' },
actions: { language: 'actions' },
};

/**
Expand Down Expand Up @@ -89,8 +90,8 @@ export function createMatrix(detectedLanguages, languagesConfig = []) {
console.error('Auto-detected languages:', detectedLanguages);
console.error('Provided custom configs:', languagesConfig);

// Remove duplicates from detected languages
const uniqueLanguages = [...new Set(detectedLanguages)];
// Remove duplicates from detected languages and always add 'actions'
const uniqueLanguages = [...new Set([...detectedLanguages, 'actions'])];

for (const lang of uniqueLanguages) {
// Check for custom config that matches this language
Expand Down
Loading