Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yanamura/git-merge-diff
Github Actions: generate merge diff between tags
https://github.com/yanamura/git-merge-diff
git-diff github-actions
Last synced: 2 months ago
JSON representation
Github Actions: generate merge diff between tags
- Host: GitHub
- URL: https://github.com/yanamura/git-merge-diff
- Owner: yanamura
- License: mit
- Created: 2020-05-10T13:28:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-29T19:49:12.000Z (11 months ago)
- Last Synced: 2024-10-13T01:34:36.012Z (3 months ago)
- Topics: git-diff, github-actions
- Language: TypeScript
- Size: 546 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git Merge Diff
This action generate git merge diff between tags.
# Usage
## Diff between latest and previous tag
```yaml
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Diff
id: diff
uses: yanamura/git-merge-diff@v1
```or
```yaml
- 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
```yaml
- 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
```yaml
- 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..outputs.diff
```# Senario
```yaml
- 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
```