Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Git Merge Diff

This action generate git merge diff between tags.

Usage

Diff between latest and previous tag

- uses: actions/checkout@v3with:
fetch-depth: 0
- name: Diffid: diffuses: yanamura/git-merge-diff@v1

or

- uses: actions/checkout@v3with:
fetch-depth: 0
- name: Diffid: diffuses: yanamura/git-merge-diff@v1with:
from: prevto: latest

Diff between HEAD and latest tag

- uses: actions/checkout@v3with:
fetch-depth: 0
- name: Diffid: diffuses: yanamura/git-merge-diff@v1with:
from: latestto: HEAD

Diff between specified tags

- uses: actions/checkout@v3with:
fetch-depth: 0
- name: Diffid: diffuses: yanamura/git-merge-diff@v1with:
from: v1.0.0to: 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@v3with:
fetch-depth: 0
- name: Diffid: diffuses: yanamura/git-merge-diff@v1
- name: Create Releaseuses: actions/create-release@v1env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}with:
tag_name: ${{ github.ref }}release_name: Release ${{ github.ref }}body: | ${{ steps.diff.outputs.diff }}draft: falseprerelease: false

About

Github Actions: generate merge diff between tags

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages