https://github.com/technote-space/load-config-action
https://github.com/technote-space/load-config-action
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/technote-space/load-config-action
- Owner: technote-space
- License: mit
- Created: 2020-03-02T04:56:57.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-12-24T09:03:43.000Z (almost 2 years ago)
- Last Synced: 2025-05-10T05:48:10.590Z (7 months ago)
- Language: TypeScript
- Size: 7.6 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Load Config Action
[](https://github.com/technote-space/load-config-action/actions)
[](https://codecov.io/gh/technote-space/load-config-action)
[](https://www.codefactor.io/repository/github/technote-space/load-config-action)
[](https://github.com/technote-space/load-config-action/blob/master/LICENSE)
GitHub Actions to load config.
## Table of Contents
Details
- [Usage](#usage)
- [Author](#author)
*generated with [TOC Generator](https://github.com/technote-space/toc-generator)*
## Usage
e.g. `test.yml`
```yaml
on: push
name: Example
jobs:
triage:
name: Load config example
runs-on: ubuntu-latest
steps:
- uses: technote-space/load-config-action@v1
with:
CONFIG_FILENAME: config.yml
- name: Dump
run: |
echo ${{ env.test1 }}
echo ${{ env.test2 }}
echo ${{ env.test3 }}
```
`.github/config.yml`
```yaml
test1: test1
test2:
- test1
- test2
test3:
test4: test5
```
result:
```
test1
[test1,test2]
{test4:test5}
```
## Author
[GitHub (Technote)](https://github.com/technote-space)
[Blog](https://technote.space)