From 087baee40fd3bea91968cbce5197465c7a761a2b Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 11 Dec 2020 16:31:57 -0500 Subject: [PATCH 1/5] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 14ff81e..6c86844 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -branch-name ------------ +branch-names +------------ Get branch information without the `/ref/*` prefix From 51386c47f1ae9ed51c4896595a064336be8c44f2 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 11 Dec 2020 16:36:21 -0500 Subject: [PATCH 2/5] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6c86844..b6aaceb 100644 --- a/README.md +++ b/README.md @@ -12,17 +12,17 @@ Get branch information without the `/ref/*` prefix id: branch-names - name: Get Ref brach name run: | - echo "${{ steps.branch-name.outputs.ref_branch }}" # Outputs: "main" + echo "${{ steps.branch-name.outputs.ref_branch }}" # Outputs: "main" for a non PR branch | "1/merge" for a PR branch - name: Get Head Ref branch name if: github.event_name == 'pull_request' run: | - echo "${{ steps.branch-name.outputs.head_ref_branch }}" # Outputs: "feature/test" + echo "${{ steps.branch-name.outputs.head_ref_branch }}" # Outputs: "feature/test" current PR branch. - name: Get Base Ref branch name if: github.event_name == 'pull_request' run: | - echo "${{ steps.branch-name.outputs.base_ref_branch }}" # Outputs: "1/merge" + echo "${{ steps.branch-name.outputs.base_ref_branch }}" # Outputs: "main" for main <- PR branch. ``` From 6d2107967906ac24b606ba48cb13ad7aa2a5bcd3 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 11 Dec 2020 16:36:45 -0500 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b6aaceb..bf8b1b5 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Get branch information without the `/ref/*` prefix id: branch-names - name: Get Ref brach name run: | - echo "${{ steps.branch-name.outputs.ref_branch }}" # Outputs: "main" for a non PR branch | "1/merge" for a PR branch + echo "${{ steps.branch-name.outputs.ref_branch }}" # Outputs: "main" for non PR branches | "1/merge" for a PR branch - name: Get Head Ref branch name if: github.event_name == 'pull_request' From 71ea4d1bd60657bbd5c2599cac44a0f0c53bb68d Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 11 Dec 2020 16:37:11 -0500 Subject: [PATCH 4/5] Update README.md --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bf8b1b5..ea6a02d 100644 --- a/README.md +++ b/README.md @@ -12,17 +12,20 @@ Get branch information without the `/ref/*` prefix id: branch-names - name: Get Ref brach name run: | - echo "${{ steps.branch-name.outputs.ref_branch }}" # Outputs: "main" for non PR branches | "1/merge" for a PR branch + echo "${{ steps.branch-name.outputs.ref_branch }}" + # Outputs: "main" for non PR branches | "1/merge" for a PR branch - name: Get Head Ref branch name if: github.event_name == 'pull_request' run: | - echo "${{ steps.branch-name.outputs.head_ref_branch }}" # Outputs: "feature/test" current PR branch. + echo "${{ steps.branch-name.outputs.head_ref_branch }}" + # Outputs: "feature/test" current PR branch. - name: Get Base Ref branch name if: github.event_name == 'pull_request' run: | - echo "${{ steps.branch-name.outputs.base_ref_branch }}" # Outputs: "main" for main <- PR branch. + echo "${{ steps.branch-name.outputs.base_ref_branch }}" + # Outputs: "main" for main <- PR branch. ``` From 12ee3351aa8b9488126a09eb2c3677bcc5bb4382 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 11 Dec 2020 16:37:34 -0500 Subject: [PATCH 5/5] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ea6a02d..b6626d3 100644 --- a/README.md +++ b/README.md @@ -13,19 +13,19 @@ Get branch information without the `/ref/*` prefix - name: Get Ref brach name run: | echo "${{ steps.branch-name.outputs.ref_branch }}" - # Outputs: "main" for non PR branches | "1/merge" for a PR branch + # Outputs: "main" for non PR branches | "1/merge" for a PR branch - name: Get Head Ref branch name if: github.event_name == 'pull_request' run: | echo "${{ steps.branch-name.outputs.head_ref_branch }}" - # Outputs: "feature/test" current PR branch. + # Outputs: "feature/test" current PR branch. - name: Get Base Ref branch name if: github.event_name == 'pull_request' run: | echo "${{ steps.branch-name.outputs.base_ref_branch }}" - # Outputs: "main" for main <- PR branch. + # Outputs: "main" for main <- PR branch. ```