Giter Site home page Giter Site logo

Comments (4)

fraciril avatar fraciril commented on July 17, 2024

Another tag name that worked for me is tag_name: ${{ github.run_number }}, which I found friendlier than the sha:

run_number: stringA unique number for each run of a particular workflow in a repository. This number begins at 1 for the workflow's first run, and increments with each new run. This number does not change if you re-run the workflow run.

from create-release.

Oskar619 avatar Oskar619 commented on July 17, 2024

Came here just for this, I messed up my master branch in my repository because I was trying to test the example.
At least some comments stating why you shouldn't do it with a non-tagged branch could have helped me avoid this situation.

from create-release.

ash0x0 avatar ash0x0 commented on July 17, 2024

There was probably an implicit assumption by whoever wrote the README that people would be using this conditionally with version tags so I think there were assuming the step/job would have if: startsWith(github.ref, 'refs/tags/v') which is probably what anyone using some release action like this should have.

from create-release.

emctague avatar emctague commented on July 17, 2024

@ash0x0 for best practice use I would agree but in some simple projects (such as the one that prompted me to make this issue) it can be useful to just build any commit and create an artifact for it.

from create-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.