branch-names/action.yml

24 lines
566 B
YAML
Raw Normal View History

2020-12-11 21:15:40 +08:00
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 }}
2020-12-11 21:23:56 +08:00
2020-12-11 21:15:40 +08:00
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