Releases: jerry153fish/git-delta-action
Releases · jerry153fish/git-delta-action
Version 0.0.1 (Initial Release)
Release Date: 2024-10-20
Overview: This is the initial release of the Git Delta Action. This action enables users to show git diffs with Delta for specific files against various environments, branches, or commits. It offers flexibility in comparing file changes while providing an easy-to-use interface through GitHub Actions.
Key Features:
- Git Diff with Delta: Compare changes in files with improved visual diffs using Delta.
- Flexible Input Options:
- Environment: Specify the environment for comparison.
- Branch: Set a base branch for comparison (default: main).
- Commit: Optionally provide a commit for comparison.
- Includes/Excludes: Define file patterns to include or exclude in the delta calculation, allowing for tailored comparisons.
- Online/Offline Mode: Choose to run Delta online using the GitHub API or offline, based on your needs.
Inputs:
- github_token: (optional) GitHub token for querying the GitHub REST API.
- environment: (optional) Environment to compare against.
- branch: (optional) Base branch to compare against (default: main).
- commit: (optional) Commit to compare against.
- includes: (optional) File patterns to include in the delta calculation (default: "").
- excludes: (optional) File patterns to exclude in the delta calculation (default: "").
- online: (optional) If true, runs git delta online against the GitHub API (default: true).
Outputs:
- delta_files: File paths with the delta in JSON string format.
- is_detected: Boolean indicating whether any delta has been detected.
Getting Started: To use the Git Delta Action in your GitHub Actions workflow, add the following snippet to your workflow YAML file:
- name: Run Git Delta Action
uses: jerry153fish/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'main'
includes: |
live/local/*
live/stag/ec2/terragrunt.hcl
excludes: |
*.zip
*/**/README.md