Skip to content

scalified/commit-info-action

Actions
Generates commit information in JSON format
v1.0.0
Latest
Star (0)

Commit Info GitHub Action

License Release

Overview

A simple GitHub Action to generate commit information in the following JSON format:

{
   "hash": "a1b2c3d4e5f6g7h8i9j0klmnopqrstuvwx123456",
   "commitDate": "2025-08-14 13:45:02 +0300",
   "comment": "Fix: resolve config map replace issue",
   "buildDate": "2025-08-14 14:10:27 +0300"
}

Uses git-commit-info-json script

Usage

- name: Generate commit info
  uses: scalified/commit-info-action@v1
  with:
    file: version.json
    hash: a1b2c3d4

Inputs

Input Description Required Default
file Path to the file where commit info will be saved No ""
hash Git commit hash to generate information for No Latest commit hash

Outputs

Output Description
commit-info Git commit information
short-hash Short version of the Git commit hash (first 7 characters)

Made with ❤️ by Scalified

scalified/commit-info-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Generates commit information in JSON format
v1.0.0
Latest

scalified/commit-info-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.