Skip to content

Commit

Permalink
Updated to use a composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonye Jack committed Dec 11, 2020
1 parent 6f69b01 commit c05e12b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
9 changes: 0 additions & 9 deletions Dockerfile

This file was deleted.

17 changes: 11 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,24 @@ inputs:

outputs:
base_ref_branch:
value: ${{ steps.branch.outputs.base_ref_branch }}
description: 'The target branch of a pull request'
head_ref_branch:
value: ${{ steps.branch.outputs.head_ref_branch }}
description: 'The source branch of a pull request'
ref_branch:
value: ${{ steps.branch.outputs.ref_branch }}
description: 'The branch that triggered the workflow run.'

runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.base_ref }}
- ${{ inputs.head_ref }}
- ${{ inputs.ref }}
using: "composite"
steps:
- id: branch
run: |
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\//}"
shell: bash
branding:
icon: git-branch
color: white
7 changes: 0 additions & 7 deletions entrypoint.sh

This file was deleted.

0 comments on commit c05e12b

Please sign in to comment.