-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathaction.yml
More file actions
26 lines (26 loc) · 1.1 KB
/
action.yml
File metadata and controls
26 lines (26 loc) · 1.1 KB
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
name: 'Get Commit Data'
description: 'Derive additional commit data for the current workflow'
inputs:
working_directory:
description: Working directory in which to run git commands. Defaults to current working directory.
required: false
outputs:
branch:
description: HEAD branch
is_pr:
description: "'true' if this is a PR workflow, else 'false'."
pr_head:
description: The pull request head ref (the ref the PR is "coming from"). Empty if (!is_pr).
pr_base:
description: The pull request base ref (the ref that is "receiving" the PR). Empty if (!is_pr).
tags:
description: All tags that point at the HEAD commit. If there are no tags, this is the empty string. If there are multiple tags, they are sorted alphabetically and separated by spaces.
tag:
description: If tags is not empty, this is the first tag alphabetically. This way, you can know that this output contains exactly one or zero tags.
tags_count:
description: The integer number of tags in "tags".
short_sha:
description: First 7 characters of the HEAD commit.
runs:
using: 'docker'
image: 'Dockerfile'