diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 117d019..e7e1be5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,3 +17,21 @@ jobs: uses: actions/checkout@v2 - name: shellcheck uses: reviewdog/action-shellcheck@v1 + - name: Run test + id: branch-name + uses: ./ + - name: Show output + run: + echo "${{ steps.branch-name.outputs.base_ref_branch }}" + echo "${{ steps.branch-name.outputs.head_ref_branch }}" + echo "${{ steps.branch-name.outputs.ref_branch }}" +# - name: Test base ref output +# if: steps.branch-name.outputs.base_ref_branch +# run: | +# exit 1 +# - name: Test head ref output +# run: | +# exit 1 +# - name: Test ref output +# run: | +# exit 1 diff --git a/README.md b/README.md index 1e3ab96..203f737 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,11 @@ Retrieve giithub branch information without any prefix - uses: actions/checkout@v2 - name: Get branch name uses: tj-actions/branch-name@v1 + - name: Get brach Names + run: | + echo "${{ steps.branch-name.outputs.base_ref_branch }}" + echo "${{ steps.branch-name.outputs.head_ref_branch }}" + echo "${{ steps.branch-name.outputs.ref_branch }}" ```