-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
30 lines (30 loc) · 928 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Detect Branch Changes
description: |
Detect all changes in a branch. This is done by detecting the fork-point of the current branch with the
repo's base branch.
branding:
icon: git-branch
color: yellow
author: Bert Goethals
inputs:
base_branch:
description: "Branch to compare with"
required: false
default: ${{ github.event.repository.default_branch }}
pathspec:
description: "Pattern used to limit paths in the `git diff` command."
required: false
default: ""
outputs:
changed:
description: "Whether or not files matched by the pathspec were changed."
value: ${{ steps.run.outputs.changed }}
fork_point_sha:
description: "The sha we compared with"
value: ${{ steps.run.outputs.fork_point_sha }}
runs:
using: 'composite'
steps:
- id: run
run: ${{ github.action_path }}/entrypoint.sh ${{ inputs.base_branch }} ${{ inputs.pathspec }}
shell: bash