Skip to content

Commit f78a281

Browse files
authored
Merge pull request #45 from Telefonica/release
Release v1.2.0
2 parents bb98fe7 + 07659b1 commit f78a281

File tree

16 files changed

+23299
-983
lines changed

16 files changed

+23299
-983
lines changed

.github/workflows/open-source-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
npm-token: ${{ secrets.NPM_TOKEN_XCUT }}
4444

4545
- name: Check License Compliance
46-
uses: Telefonica/check-license-compliance/.github/actions/check-and-comment@v3.0.0-beta.2
46+
uses: Telefonica/check-license-compliance/.github/actions/check-and-comment@v3.0.0-beta.3
4747
with:
4848
config-file: .github/check-license-compliance.config.yml
4949
env:

.github/workflows/sync-docs-to-confluence.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- name: Sync Docs
2626
id: sync-docs
27-
uses: Telefonica/markdown-confluence-sync-action@v1
27+
uses: Telefonica/markdown-confluence-sync-action@v2
2828
with:
2929
mode: id
3030
docs-dir: '.'

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
#### Deprecated
1212
#### Removed
1313

14+
## [1.2.0] - 2025-03-24
15+
16+
### Added
17+
18+
* feat: Add `ignore` input to the github action, enabling to ignore some files when checking the scaffold resources.
19+
20+
### Changed
21+
22+
* chore: Upgrade `check-license-compliance` to v3.0.0-beta.3 (Support more granularity for including or excluding modules)
23+
1424
## [1.1.1] - 2025-02-20
1525

1626
### Fixed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,28 @@ jobs:
113113
uses: Telefonica/opensource-scaffold@v1
114114
```
115115
116+
> [!TIP]
117+
> You can ignore some files when checking the open source resources by providing a list of glob patterns in the `ignore` input. For example, if your repository is a monorepo and you want to ignore the root CHANGELOG.md file, you can omit it by adding `CHANGELOG.md` to the `ignore` input. Read the [inputs](#inputs) section for more information.
118+
119+
#### Inputs
120+
121+
The `opensource-scaffold` action supports the following inputs:
122+
123+
| Name | Description | Type | Required | Default |
124+
| --- | --- | --- | --- | --- |
125+
| `log` | The log level to use when running the action | String | No | `info` |
126+
| `ignore` | A semicolon separated list of glob patterns to ignore files when checking the open source resources | String | No | - |
127+
128+
Example:
129+
130+
```yaml
131+
- name: Check Open Source scaffold
132+
uses: Telefonica/opensource-scaffold@v1
133+
with:
134+
log: debug
135+
ignore: "CHANGELOG.md;**/ISSUE_TEMPLATE/**"
136+
```
137+
116138
## The scaffold
117139

118140
Once you initialize an open source project using this scaffold, it will include the following:

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ inputs:
1919
- 'silent'
2020
default: 'info'
2121
required: false
22+
ignore:
23+
description: 'List of glob patterns to ignore, semi-colon separated'
24+
required: false
2225
outputs:
2326
valid:
2427
description: 'Whether the check passed or not'

action/main.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ function valueIfDefined<T = string>(value: T): T | undefined {
2222
export async function run(): Promise<void> {
2323
try {
2424
const log = valueIfDefined((core.getInput("log") as LogLevel) || "");
25-
const checker = new Checker({ log });
25+
const ignore = valueIfDefined(core.getInput("ignore") || "");
26+
const ignorePatterns = ignore
27+
? ignore.split(";").map((ignorePattern) => ignorePattern.trim())
28+
: undefined;
29+
30+
const checker = new Checker({ log, ignore: ignorePatterns });
2631
const result = await checker.check();
2732

2833
core.setOutput("valid", result.valid.toString());

0 commit comments

Comments
 (0)