mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-27 10:03:50 +08:00
switch to use inputs.
This commit is contained in:
parent
744038b35c
commit
2900d3df9a
17
action.yml
17
action.yml
@ -6,7 +6,18 @@ inputs:
|
|||||||
description: 'GITHUB_TOKEN or a Repo scoped PAT'
|
description: 'GITHUB_TOKEN or a Repo scoped PAT'
|
||||||
required: true
|
required: true
|
||||||
default: ${{ github.token }}
|
default: ${{ github.token }}
|
||||||
|
base_ref:
|
||||||
|
description: 'The target branch of a pull request'
|
||||||
|
default: ${{ github.base_ref }}
|
||||||
|
required: false
|
||||||
|
head_ref:
|
||||||
|
description: 'The source branch of a pull request'
|
||||||
|
default: ${{ github.head_ref }}
|
||||||
|
required: false
|
||||||
|
ref:
|
||||||
|
description: 'The branch that triggered the workflow run.'
|
||||||
|
default: ${{ github.ref }}
|
||||||
|
required: false
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
base_ref_branch:
|
base_ref_branch:
|
||||||
@ -19,6 +30,10 @@ outputs:
|
|||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'Dockerfile'
|
image: 'Dockerfile'
|
||||||
|
args:
|
||||||
|
- ${{ inputs.base_ref }}
|
||||||
|
- ${{ inputs.head_ref }}
|
||||||
|
- ${{ inputs.ref }}
|
||||||
branding:
|
branding:
|
||||||
icon: git-branch
|
icon: git-branch
|
||||||
color: white
|
color: white
|
||||||
|
Loading…
Reference in New Issue
Block a user