ravivooda / stocks

1 stars 0 forks source link

Need to refactor this code with simple secrets.yaml creation #11

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

https://github.com/ravivooda/stocks/blob/57d55a4ffc033f1b8ebd11d41a7879c0522e9fc1/.github/workflows/production.yml#L28


    - name: Test
      run: go test -v ./...

    # TODO: Need to refactor this code with simple secrets.yaml creation
    - name: Setup secrets.yaml
      run: |
        echo "ms_api:" >> secrets.yaml
        echo "  key: ${{secrets.MS_API_KEY_SECRET}}" >> secrets.yaml
        echo "notifications:" >> secrets.yaml
        echo "  should_send_email: true" >> secrets.yaml
        echo "uploads:" >> secrets.yaml
        echo "  should_upload_insights_output_to_gcp: true" >> secrets.yaml

    - name: Run orchestrator
      run: |
        go run .

    # TODO: Hardcoded for now, need to fix this in future