Skip to content

technote-space/load-config-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Load Config Action

CI Status codecov CodeFactor License: MIT

GitHub Actions to load config.

Table of Contents

Details

generated with TOC Generator

Usage

e.g. test.yml

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

test1: test1
test2:
  - test1
  - test2
test3:
  test4: test5

result:

test1
[test1,test2]
{test4:test5}

Author

GitHub (Technote)
Blog