From 26b1f6c3ce404ed7c53a0e755a83eae866903227 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 11 Dec 2020 12:42:26 -0500 Subject: [PATCH] Update README.md --- README.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ee742ec..14ff81e 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,18 @@ Get branch information without the `/ref/*` prefix ``` +### Possible usage with [actions/checkout@v2](https://github.com/actions/checkout): + +```yaml + - name: Get branch names. + id: branch-names + uses: tj-actions/branch-names@v1 + - uses: actions/checkout@v2 + with: + ref: ${{ steps.branch-names.outputs.base_ref_branch }} +``` + + ## Inputs | Input | type | required | default | @@ -44,17 +56,6 @@ Get branch information without the `/ref/*` prefix | ref_branch | `string` | `1/merge` | The branch that triggered the workflow run | -Possible usage with [actions/checkout@v2](https://github.com/actions/checkout): - -```yaml - - name: Get branch names. - id: branch-names - uses: tj-actions/branch-names@v1 - - uses: actions/checkout@v2 - with: - ref: ${{ steps.branch-names.outputs.base_ref_branch }} -``` - * Free software: [MIT license](LICENSE)