mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 13:43:50 +08:00
28 lines
656 B
YAML
28 lines
656 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'
|
|
args:
|
|
- ${{ github.base_ref }}
|
|
- ${{ github.head_ref }}
|
|
- ${{ github.ref }}
|
|
branding:
|
|
icon: git-branch
|
|
color: white
|