mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 16:53:50 +08:00
Fixed args.
This commit is contained in:
parent
298b831650
commit
744038b35c
@ -7,6 +7,7 @@ inputs:
|
|||||||
required: true
|
required: true
|
||||||
default: ${{ github.token }}
|
default: ${{ github.token }}
|
||||||
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
base_ref_branch:
|
base_ref_branch:
|
||||||
description: 'The target branch of a pull request'
|
description: 'The target branch of a pull request'
|
||||||
@ -18,10 +19,6 @@ outputs:
|
|||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'Dockerfile'
|
image: 'Dockerfile'
|
||||||
args:
|
|
||||||
- ${{ github.base_ref }}
|
|
||||||
- ${{ github.head_ref }}
|
|
||||||
- ${{ github.ref }}
|
|
||||||
branding:
|
branding:
|
||||||
icon: git-branch
|
icon: git-branch
|
||||||
color: white
|
color: white
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "::set-output name=base_ref_branch::${0/refs\/heads\//}"
|
echo "::set-output name=base_ref_branch::${INPUT_BASE_REF/refs\/heads\//}"
|
||||||
echo "::set-output name=head_ref_branch::${1/refs\/heads\//}"
|
echo "::set-output name=head_ref_branch::${INPUT_HEAD_REF/refs\/heads\//}"
|
||||||
echo "::set-output name=ref_branch::${2/refs\/heads\//}"
|
echo "::set-output name=ref_branch::${INPUT_REF/refs\/heads\//}"
|
||||||
|
Loading…
Reference in New Issue
Block a user