Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support different manifest delimiters

See original GitHub issue

I’m working in an environment where I went to set the manifests dynamically. Specifically I have an environment variable that contains the list of manifests, but passing this into the action does not work:

      - name: Set manifests
        run: |
          echo 'MANIFESTS<<EOF' >> $GITHUB_ENV
          find k8s/shared k8s/staging -type f >> $GITHUB_ENV
          echo 'EOF' >> $GITHUB_ENV
      - run: echo "$MANIFESTS"
      - name: Authenticate to kubernetes
        uses: azure/k8s-set-context@v1
          method: service-account
          k8s-url: ${{ secrets.KUBERNETES_URL }}
          k8s-secret: ${{ secrets.STAGING_K8S_SECRET }}
      - uses: Azure/k8s-deploy@v1.4
          namespace: 'staging'
          manifests: |
            ${{ env.MANIFESTS }}
          images: |
  ${{ github.sha }}
          kubectl-version: 'latest'      

There is no valid syntax that’ll work here (afaik) because Github Actions will not properly put in multiline values here. This could be easily solved if a different separator would be accepted.

Interestingly, current code splits by \n.

 let manifests = manifestsInput.split('\n');

A clean solution would be to make the separator configurable as an input in the action. I can make a PR.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

tgdfool2commented, Apr 29, 2021

Thanks for the quick release @Ganeshrockz. Tested right now and it’s working like a charm!

Ganeshrockzcommented, Apr 14, 2021

I have raised a PR to support both commas and new line as delimiters. @SamMousa and @uzi0espil, I believe this should address your use case

Read more comments on GitHub >

github_iconTop Results From Across the Web

Supported formats for Amazon S3 manifest files
Valid formats are CSV , TSV , CLF , ELF , and JSON . The default value is CSV . delimiter – (Optional)...
Read more >
Manifest Format
Allows different portions of archives to be signed by different parties, as well as overlap, and unsigned files. Supports needs for Java archives...
Read more >
Common Data Model metadata: Introducing manifest
The manifest object describes the list of entities in the solution, giving a detailed schema description for each entity, a collection of data ......
Read more >
Specify multiple delimiters for Redshift copy command
This will let you load your data to Redshift and then query in database to see where your columns start being out of...
Read more >
Can we generate the BIX manifest files with pipe(|) delimiter ...
Hi All, Can we generate the BIX manifest files as csv files with pipe(|) as delimiter.By default pega is generating the CSV files...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found