Coder Social home page Coder Social logo

Comments (4)

miketrethewey avatar miketrethewey commented on August 28, 2024 1

actions-test branch of Artheau/SpriteSomething

from action-gh-release.

softprops avatar softprops commented on August 28, 2024

@miketrethewey thanks for reaching out.

Can you link to a repo where I can see and possibly try to reproduce your example?

I typically don't create a tag inside a workflow run but I think that should be possible. I can add some examples to the readme file. The logic that creates a tag on a push would need to be conditional in someway, I think you hinted at an env variable, in order to not create a loop but I don't think it's common to create a tag on every push.

That doesn't sound that the kind of problem that would be specific to this action. A push trigger that generates a push trigger that generates a push trigger sounds like a more general problem :) perhaps the workflow action that pushes a tag could only tag on pushes the specific branches when the current push ref is not a tag itself.

If you could link me to an example I can provide some more concrete help.

from action-gh-release.

softprops avatar softprops commented on August 28, 2024

Few things I noticed on initial glance.

  1. I don't think env variables get passed to between workflow actions steps by default. This may break some assumings the following code assumes

https://github.com/Artheau/SpriteSomething/blob/d514706adacc2ddebaa2c4e3c44a11a0791c930c/.github/workflows/ci.yml#L208

I haven't tied this myself yet but I'll do some experimenting. There does seem to be a special syntax for doing this mentioned in the docs

  1. git tag only creates a tag on the runner. You need to push it to your git remote for GitHub releases to resolve it. https://github.com/Artheau/SpriteSomething/blob/d514706adacc2ddebaa2c4e3c44a11a0791c930c/.github/workflows/ci.yml#L211 I'll try an put together an example in this action's readme showing how to do that

  2. there can be only one body. https://github.com/Artheau/SpriteSomething/blob/d514706adacc2ddebaa2c4e3c44a11a0791c930c/.github/workflows/ci.yml#L225 uses both options but only one will be used. This is mentioned here

I can take a closer look this weekend

from action-gh-release.

miketrethewey avatar miketrethewey commented on August 28, 2024
  1. Yeah. I’ve been attempting to just write and read them from disk, or do the same action twice, which is obviously redundant.

  2. I think I’m being tripped up by whatever “push” means as an event that the system checks for. What I really want is for it to fire on “commit” and “pull request.”

  3. Yep. I’m hoping that it’ll cat the contents of RELEASENOTES.md and if that fails, it’ll just provide a hyperlink to it instead.

Thanks for the insight! That’ll give me a direction when I too return home from work today.

from action-gh-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.