Skip to content

git merge diff

Actions
generate git merge diff between tags
v1.6.0
Latest
Star (2)

Tags

 (1)

Git Merge Diff

This action generate git merge diff between tags.

Usage

Diff between latest and previous tag

- uses: actions/checkout@v3
  with:
    fetch-depth: 0
- name: Diff
    id: diff
    uses: yanamura/git-merge-diff@v1

or

- uses: actions/checkout@v3
  with:
    fetch-depth: 0
- name: Diff
    id: diff
    uses: yanamura/git-merge-diff@v1
    with:
        from: prev
        to: latest

Diff between HEAD and latest tag

- uses: actions/checkout@v3
  with:
    fetch-depth: 0
- name: Diff
    id: diff
    uses: yanamura/git-merge-diff@v1
    with:
        from: latest
        to: HEAD

Diff between specified tags

- uses: actions/checkout@v3
  with:
    fetch-depth: 0
- name: Diff
    id: diff
    uses: yanamura/git-merge-diff@v1
    with:
        from: v1.0.0
        to: v1.1.0

Note: don't forget to fetch.(actions/checkout only fetch depth=0)

get output(merge diff)

steps.<step id>.outputs.diff

Senario

- uses: actions/checkout@v3
  with:
    fetch-depth: 0
- name: Diff
    id: diff
    uses: yanamura/git-merge-diff@v1
- name: Create Release
    uses: actions/create-release@v1
    env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    with:
        tag_name: ${{ github.ref }}
        release_name: Release ${{ github.ref }}
        body: |
            ${{ steps.diff.outputs.diff }}
        draft: false
        prerelease: false

git merge diff 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

generate git merge diff between tags
v1.6.0
Latest

Tags

 (1)

git merge diff 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.