test: debug #18
This file contains hidden or 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: Generate JSON Files | |
| on: push | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Create multiple JSON files | |
| run: | | |
| declare -a projects=("project1" "project2" "project3") | |
| for project in "${projects[@]}"; do | |
| cat <<EOF > "${project}.json" | |
| { | |
| "name": "$project", | |
| "version": "1.0.0", | |
| "description": "This is a JSON file for $project." | |
| } | |
| EOF | |
| done |