Test #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
workflow_dispatch: | |
jobs: | |
test_with_prefix_job: | |
runs-on: ubuntu-latest | |
name: A job to test action with prefix | |
steps: | |
- uses: actions/checkout@v2 | |
- name: JSON to variables | |
uses: antifree/json-to-variables@HEAD | |
with: | |
filename: 'test.json' | |
prefix: test | |
- name: Show output | |
run: echo "The time was ${{ env.test_value }}, ${{ env.test_array_0_value }}, ${{ env.test_obj_value1 }}" | |
test_without_prefix_job: | |
runs-on: ubuntu-latest | |
name: A job to test action without prefix | |
steps: | |
- uses: actions/checkout@v2 | |
- name: JSON to variables | |
uses: antifree/json-to-variables@HEAD | |
with: | |
filename: 'test.json' | |
- name: Show output | |
run: echo "The time was ${{ env.value }}, ${{ env.array_0_value }}, ${{ env.obj_value1 }}" | |