Skip to content

Commit 7da3c29

Browse files
committed
docs: rename gh action
Signed-off-by: Rishav Dhar <19497993+rdhar@users.noreply.github.com>
1 parent c851fe2 commit 7da3c29

File tree

4 files changed

+59
-15
lines changed

4 files changed

+59
-15
lines changed

.github/workflows/test_ci.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Test CI
3+
4+
on:
5+
pull_request:
6+
paths: [.github/workflows/test_ci.yaml, action.yml]
7+
8+
jobs:
9+
ci:
10+
runs-on: ubuntu-24.04
11+
12+
permissions:
13+
contents: read # Required to checkout repository.
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
with:
19+
fetch-depth: 0
20+
persist-credentials: false
21+
22+
- name: Changed diff-tree
23+
id: changed
24+
uses: ./
25+
with:
26+
working-directory: tests/${{ matrix.test }}
27+
28+
- name: Tag release version
29+
env:
30+
GH_TOKEN: ${{ github.token }}
31+
GH_TAG: ${{ github.event.release.tag_name}}
32+
run: |
33+
version=${GH_TAG%%.*}
34+
gh api /repos/${{ github.repository }}/git/refs/tags/${version} --method PATCH --silent --field sha="${GITHUB_SHA}" --field force=true || \
35+
gh api /repos/${{ github.repository }}/git/refs --method POST --silent --field sha="${GITHUB_SHA}" --field ref="refs/tags/${version}"

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
[![GitHub license](https://img.shields.io/github/license/op5dev/diff-tree?logo=apache&label=License)](LICENSE "Apache License 2.0.")
2-
[![GitHub release tag](https://img.shields.io/github/v/release/op5dev/diff-tree?logo=semanticrelease&label=Release)](https://github.com/op5dev/diff-tree/releases "View all releases.")
1+
[![GitHub license](https://img.shields.io/github/license/op5dev/changed-diff-tree?logo=apache&label=License)](LICENSE "Apache License 2.0.")
2+
[![GitHub release tag](https://img.shields.io/github/v/release/op5dev/changed-diff-tree?logo=semanticrelease&label=Release)](https://github.com/op5dev/changed-diff-tree/releases "View all releases.")
33
*
4-
[![GitHub repository stargazers](https://img.shields.io/github/stars/op5dev/diff-tree)](https://github.com/op5dev/diff-tree "Become a stargazer.")
4+
[![GitHub repository stargazers](https://img.shields.io/github/stars/op5dev/changed-diff-tree)](https://github.com/op5dev/changed-diff-tree "Become a stargazer.")
55

6-
# Diff-Tree
6+
# Changed Diff-Tree
77

8-
Git diff-tree for a list of changed files or directories between commits for GitHub Action event triggers.
8+
Git diff-tree for a list of changed files or directories between branches with GitHub Action event triggers.
99

1010
## Parameters
1111

@@ -33,21 +33,21 @@ View [security policy and reporting instructions](SECURITY.md).
3333

3434
## Changelog
3535

36-
View [all notable changes](https://github.com/op5dev/diff-tree/releases "Releases.") to this project in [Keep a Changelog](https://keepachangelog.com "Keep a Changelog.") format, which adheres to [Semantic Versioning](https://semver.org "Semantic Versioning.").
36+
View [all notable changes](https://github.com/op5dev/changed-diff-tree/releases "Releases.") to this project in [Keep a Changelog](https://keepachangelog.com "Keep a Changelog.") format, which adheres to [Semantic Versioning](https://semver.org "Semantic Versioning.").
3737

3838
> [!TIP]
3939
>
4040
> All forms of **contribution are very welcome** and deeply appreciated for fostering open-source projects.
4141
>
42-
> - [Create a PR](https://github.com/op5dev/diff-tree/pulls "Create a pull request.") to contribute changes you'd like to see.
43-
> - [Raise an issue](https://github.com/op5dev/diff-tree/issues "Raise an issue.") to propose changes or report unexpected behavior.
44-
> - [Open a discussion](https://github.com/op5dev/diff-tree/discussions "Open a discussion.") to discuss broader topics or questions.
45-
> - [Become a stargazer](https://github.com/op5dev/diff-tree/stargazers "Become a stargazer.") if you find this project useful.
42+
> - [Create a PR](https://github.com/op5dev/changed-diff-tree/pulls "Create a pull request.") to contribute changes you'd like to see.
43+
> - [Raise an issue](https://github.com/op5dev/changed-diff-tree/issues "Raise an issue.") to propose changes or report unexpected behavior.
44+
> - [Open a discussion](https://github.com/op5dev/changed-diff-tree/discussions "Open a discussion.") to discuss broader topics or questions.
45+
> - [Become a stargazer](https://github.com/op5dev/changed-diff-tree/stargazers "Become a stargazer.") if you find this project useful.
4646
4747
</br>
4848

4949
## License
5050

5151
- This project is licensed under the permissive [Apache License 2.0](LICENSE "Apache License 2.0.").
52-
- All works herein are my own, shared of my own volition, and [contributors](https://github.com/op5dev/diff-tree/graphs/contributors "Contributors.").
52+
- All works herein are my own, shared of my own volition, and [contributors](https://github.com/op5dev/changed-diff-tree/graphs/contributors "Contributors.").
5353
- Copyright 2016-present [Rishav Dhar](https://github.com/rdhar "Rishav Dhar's GitHub profile.") — All wrongs reserved.

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ Integrating security in your CI/CD pipeline is critical to practicing DevSecOps.
1111

1212
## Reporting a Vulnerability
1313

14-
You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead, sensitive bugs must be sent by email to <contact@OP5.dev> or reported via [Security Advisory](https://github.com/op5dev/diff-tree/security/advisories/new "Create a new security advisory.").
14+
You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead, sensitive bugs must be sent by email to <contact@OP5.dev> or reported via [Security Advisory](https://github.com/op5dev/changed-diff-tree/security/advisories/new "Create a new security advisory.").

action.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Git Diff-Tree for Changed Files or Directories
33
author: Rishav Dhar (@rdhar)
4-
description: Git diff-tree for a list of changed files or directories between commits for GitHub Action event triggers.
4+
description: Git diff-tree for a list of changed files or directories between branches with GitHub Action event triggers.
55

66
runs:
77
using: composite
@@ -28,10 +28,19 @@ outputs:
2828
value: placeholder
2929

3030
inputs:
31+
source_ref:
32+
required: false
33+
description: "Source branch or commit SHA to compare from."
34+
target_ref:
35+
required: false
36+
description: "Target branch or commit SHA to compare against."
37+
format:
38+
required: false
39+
description: "Format output as: 'raw', 'json', or 'matrix'."
3140
token:
3241
required: true
3342
description: "GitHub access token with 'read:org' scope (e.g., secrets.CI_PAT)."
3443

3544
branding:
36-
color: green
37-
icon: user-check
45+
color: gray-dark
46+
icon: file-plus

0 commit comments

Comments
 (0)