Giter Club home page Giter Club logo

Comments (9)

EndBug avatar EndBug commented on May 20, 2024 1

Oh, I get it. I'll take a look and see what I can do then 👍

from add-and-commit.

EndBug avatar EndBug commented on May 20, 2024

You're probably right, thanks for the issue!

from add-and-commit.

EndBug avatar EndBug commented on May 20, 2024

What about Commit from GitHub Actions (EndBug/add-and-commit), is it ok?

from add-and-commit.

Cyberbeni avatar Cyberbeni commented on May 20, 2024

I mean using the name of the workflow/job(maybe even step) that it was used from, so for example it would default to Commit from GitHub Actions (Build/Build compiled JS version) when used here:

- uses: EndBug/add-and-commit@v4

Based on this, GITHUB_WORKFLOW env var is available. (I don't know if the job/step name is available)

from add-and-commit.

EndBug avatar EndBug commented on May 20, 2024

It seems like the GITHUB_WORKFLOW is accessible as a variable, but the actual job that's running can only be accessed via the github context: that means if you write ${{ github.job }} inside the commit message parameter it will be parsed, but I don't think I can access it, since it's not an env variable.

What about Commit from GitHub Actions ($GITHUB_WORKFLOW) then?

from add-and-commit.

Cyberbeni avatar Cyberbeni commented on May 20, 2024

Sounds good, most of the use cases will be clearly recognizable just by the workflow name (And you can still specify your own message if you need to commit multiple times inside a workflow and want to make them easily distinguishable)

from add-and-commit.

EndBug avatar EndBug commented on May 20, 2024

@all-contributors add @Cyberbeni for ideas

from add-and-commit.

allcontributors avatar allcontributors commented on May 20, 2024

@EndBug

I've put up a pull request to add @Cyberbeni! 🎉

from add-and-commit.

EndBug avatar EndBug commented on May 20, 2024

Ok, the change is published in v5.1.0 (mirrored by v5 and latest)
Thanks again for the issue ;)

from add-and-commit.

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.