Git Product home page Git Product logo

Comments (7)

cilerler avatar cilerler commented on July 20, 2024 1

😂 it worked perfectly, thanks!

bitmoji

from github-release.

meeDamian avatar meeDamian commented on July 20, 2024

Since I can't control how GH actions inputs are processed, I can only process them the same way #3 happens - by using an ex: RELEASE_FILES env variable.

What do you think?

from github-release.

cilerler avatar cilerler commented on July 20, 2024

I didn't see your message on this, sorry.
Let me give you more clear inside on this since I believe we are on different pages.
I want to be able to add a suffix to files.

so;
if input is

        files: >
          ./artifacts/ArtifactStagingDirectory

it should use the actual filenames

        files: >
         artifacts: ./artifacts/ArtifactStagingDirectory

Should use artifacts as the name.
However, if I set something like the RELEASE_FILES_SUFFIX environment variable, it should add those to the name I already set.

        files: >
         artifacts-${RELEASE_FILES_SUFFIX}: ./artifacts/ArtifactStagingDirectory

Please let me know if you need further detail

from github-release.

meeDamian avatar meeDamian commented on July 20, 2024

I've released a new version (v1.0.1) that exposes RELEASE_FILES variable, so you can just set it to whatever is needed.

from github-release.

cilerler avatar cilerler commented on July 20, 2024

let me check, and I will get back to you

from github-release.

cilerler avatar cilerler commented on July 20, 2024

Couldn't make this one work, due to the multiline syntax :( Can you give me an example of how to put multiple-lines into a variable? Remember Windows guy here :) Thank you very much!

        files: >
          artifacts-${RELEASE_TAG}:./artifacts/ArtifactStagingDirectory
          ./artifacts/NuGetPackages/*.nupkg

from github-release.

meeDamian avatar meeDamian commented on July 20, 2024

It's a space-separated list ;). Not new-line-separated one.

> symbol in yaml does just that. Ignores all newlines that follow. You can play with it here: https://yaml-multiline.info/

from github-release.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.