Skip to content

Add support for Github Actions build number #847

Closed

Description

@rand0m86

Describe the idea (required)

Currently there is no support for build number in Github Actions integration. Maybe it was not that straightforward at a time when the plugin was created.
Now it seems quite trivial, we simply have to take value from GITHUB_RUN_NUMBER environment variable.
See https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables.

Tell us about the expected behaviour (required)

It is expected to get build.number variable in the plugin populated.

Context (optional)

See PR git-commit-id/git-commit-id-plugin-core#228

Activity

  1. TheSnoozer commented on May 16, 2025

    @TheSnoozer
    Collaborator

    Thanks for creating an issue here!
    Let's continue the discussion in the PR :-)

  2. TheSnoozer commented on May 22, 2025

    @TheSnoozer
    Collaborator

    Thanks again for your contribution!
    This should become available with the update to the latest core-version (#850)

  3. added this to the 9.0.2 milestone on May 22, 2025
  4. rand0m86 commented on May 23, 2025

    @rand0m86
    Author

    Thanks, I'll wait for version 9.0.2 of maven plugin.

  5. TheSnoozer commented on May 23, 2025

    @TheSnoozer
    Collaborator
  6. rand0m86 commented on May 26, 2025

    @rand0m86
    Author

    Thanks again, it was super quick 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions