mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 18:33:52 +08:00
24 lines
566 B
YAML
24 lines
566 B
YAML
name: Get branch name
|
|
description: Retrieve giithub branch information without `/ref/heads` prefix
|
|
author: tj-actions
|
|
inputs:
|
|
token:
|
|
description: 'GITHUB_TOKEN or a Repo scoped PAT'
|
|
required: true
|
|
default: ${{ github.token }}
|
|
|
|
outputs:
|
|
base_ref_branch:
|
|
description: 'The target branch of a pull request'
|
|
head_ref_branch:
|
|
description: 'The source branch of a pull request'
|
|
ref_branch:
|
|
description: 'The branch that triggered the workflow run.'
|
|
|
|
runs:
|
|
using: 'docker'
|
|
image: 'Dockerfile'
|
|
branding:
|
|
icon: git-branch
|
|
color: white
|