-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathaction.yml
54 lines (54 loc) · 1.77 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# action.yml
name: "Git Commit Data"
description: "Action to expose git commit data (author, committer, message, ...)"
author: "Romain Lespinasse"
branding:
icon: "settings"
color: "gray-dark"
inputs:
publish-env:
description: "Publish slugs as environment variables"
default: "true"
required: true
outputs:
sha:
description: "commit hash"
value: ${{ steps.commit-data.outputs.sha }}
short-sha:
description: "abbreviated commit hash"
value: ${{ steps.commit-data.outputs.short-sha }}
author:
description: "Author name <author@email.tld>"
value: ${{ steps.commit-data.outputs.author }}
author-name:
description: "Author name"
value: ${{ steps.commit-data.outputs.author-name }}
author-email:
description: "author@email.tld"
value: ${{ steps.commit-data.outputs.author-email }}
committer:
description: "Committer name <committer@email.tld>"
value: ${{ steps.commit-data.outputs.committer }}
committer-name:
description: "Committer name"
value: ${{ steps.commit-data.outputs.committer-name }}
committer-email:
description: "committer@email.tld"
value: ${{ steps.commit-data.outputs.committer-email }}
message-subject:
description: "The first line of the commit message"
value: ${{ steps.commit-data.outputs.message-subject }}
message-subject-sanitized:
description: "the-first-line-of-the-commit-message-in-sanitized-way"
value: ${{ steps.commit-data.outputs.message-subject-sanitized }}
message-body:
description: "The body of the commit message"
value: ${{ steps.commit-data.outputs.message-body }}
runs:
using: "composite"
steps:
- id: commit-data
run: $GITHUB_ACTION_PATH/git-commit-data.sh
shell: bash
env:
INPUT_PUBLISH_ENV: ${{ inputs.publish-env }}