Skip to content

Commit

Permalink
Fixed args.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonye Jack committed Dec 11, 2020
1 parent 298b831 commit 744038b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ inputs:
required: true
default: ${{ github.token }}


outputs:
base_ref_branch:
description: 'The target branch of a pull request'
Expand All @@ -18,10 +19,6 @@ outputs:
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ github.base_ref }}
- ${{ github.head_ref }}
- ${{ github.ref }}
branding:
icon: git-branch
color: white
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

set -e

echo "::set-output name=base_ref_branch::${0/refs\/heads\//}"
echo "::set-output name=head_ref_branch::${1/refs\/heads\//}"
echo "::set-output name=ref_branch::${2/refs\/heads\//}"
echo "::set-output name=base_ref_branch::${INPUT_BASE_REF/refs\/heads\//}"
echo "::set-output name=head_ref_branch::${INPUT_HEAD_REF/refs\/heads\//}"
echo "::set-output name=ref_branch::${INPUT_REF/refs\/heads\//}"

0 comments on commit 744038b

Please sign in to comment.