Create update-config-files.yml reusable workflow, add reusable-configurations folder (#3)

* Add reusable workflow and shareable config files

* Make workflow throw if specified reference file doesn't exist

* Fix review points

* Fix review points

* Update eslint and prettier configs, change file extension

* Fix review points, update yml and configuration files

* Update set of rules for ESLint

* Update set of rules for ESLint

* Update set of rules for ESLint

* Update set of rules for ESLint

* Prepare update-config-files.yml for PR in the actions org

* Fix check-dist.yml
This commit is contained in:
Ivan
2023-03-08 10:40:28 +02:00
committed by GitHub
parent a8533f184b
commit ddc40c8708
5 changed files with 241 additions and 1 deletions
+12
View File
@@ -46,10 +46,22 @@ codeql-analysis-call:
This workflow helps to check the statuses of cached dependencies used in action with the help of the Licensed tool.
**Usage**
```yaml
licensed-call:
uses: actions/reusable-workflows/.github/workflows/licensed.yml@main
```
- [`update-config-files.yml`](./.github/workflows/update-config-files.yml)
This workflow helps to keep configuration files for such tools as ESLint and Prettier up to date with the reference configuration files from the [actions/reusable-workflows](https://github.com/actions/reusable-workflows) repository.
Once the reference configuration files are changed in the [reference folder](https://github.com/actions/reusable-workflows/tree/main/reusable-configurations), the workflow will automatically create PR with updates in the repo where it's launched.
**Usage**
```yaml
update-config-files-call:
uses: actions/reusable-workflows/.github/workflows/update-config-files.yml@main
```
## Adjusting reusable workflows
If the default behaviour of a reusable workflow isn't what you need, you can adjust it using the workflow's inputs.