Merge pull request #22 from tj-actions/upgrade-to-v3

Upgraded to v3
This commit is contained in:
Tonye Jack 2021-04-24 06:53:42 -04:00 committed by GitHub
commit 56f856e319
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 71 additions and 8 deletions

View File

@ -1,7 +1,70 @@
History # Changelog
-------
v1 (2020-12-11) ## [v3](https://github.com/tj-actions/branch-names/tree/v3) (2021-04-24)
------------------
* Initial Release. [Full Changelog](https://github.com/tj-actions/branch-names/compare/v2.2...v3)
**Merged pull requests:**
- Added support for getting the current tag [\#21](https://github.com/tj-actions/branch-names/pull/21) ([jackton1](https://github.com/jackton1))
- Configure Renovate [\#18](https://github.com/tj-actions/branch-names/pull/18) ([renovate[bot]](https://github.com/apps/renovate))
- Update README.md [\#16](https://github.com/tj-actions/branch-names/pull/16) ([jackton1](https://github.com/jackton1))
- Update README.md [\#15](https://github.com/tj-actions/branch-names/pull/15) ([jackton1](https://github.com/jackton1))
- Upgraded to v2.2 [\#14](https://github.com/tj-actions/branch-names/pull/14) ([jackton1](https://github.com/jackton1))
## [v2.2](https://github.com/tj-actions/branch-names/tree/v2.2) (2021-02-14)
[Full Changelog](https://github.com/tj-actions/branch-names/compare/v2.1...v2.2)
**Closed issues:**
- Add support for checking default branch and non default branches [\#10](https://github.com/tj-actions/branch-names/issues/10)
**Merged pull requests:**
- Update README.md [\#13](https://github.com/tj-actions/branch-names/pull/13) ([jackton1](https://github.com/jackton1))
- Update test.yml [\#12](https://github.com/tj-actions/branch-names/pull/12) ([jackton1](https://github.com/jackton1))
- Added support for detecting the default branch [\#11](https://github.com/tj-actions/branch-names/pull/11) ([jackton1](https://github.com/jackton1))
- Update README.md [\#9](https://github.com/tj-actions/branch-names/pull/9) ([jackton1](https://github.com/jackton1))
- Upgraded to v2.1 [\#8](https://github.com/tj-actions/branch-names/pull/8) ([jackton1](https://github.com/jackton1))
## [v2.1](https://github.com/tj-actions/branch-names/tree/v2.1) (2021-02-08)
[Full Changelog](https://github.com/tj-actions/branch-names/compare/v2...v2.1)
**Closed issues:**
- Add support for returning the current branch name regardless of pull\_request or push action. [\#6](https://github.com/tj-actions/branch-names/issues/6)
- Still get refs/heads prefix in outputs [\#4](https://github.com/tj-actions/branch-names/issues/4)
**Merged pull requests:**
- Added support for always returning the current branch name. [\#7](https://github.com/tj-actions/branch-names/pull/7) ([jackton1](https://github.com/jackton1))
## [v2](https://github.com/tj-actions/branch-names/tree/v2) (2020-12-29)
[Full Changelog](https://github.com/tj-actions/branch-names/compare/v1...v2)
**Fixed bugs:**
- Fix bug with ref branch. [\#5](https://github.com/tj-actions/branch-names/pull/5) ([jackton1](https://github.com/jackton1))
**Closed issues:**
- Fix up confusion with output of branch name [\#2](https://github.com/tj-actions/branch-names/issues/2)
**Merged pull requests:**
- Update README.md [\#3](https://github.com/tj-actions/branch-names/pull/3) ([jackton1](https://github.com/jackton1))
## [v1](https://github.com/tj-actions/branch-names/tree/v1) (2020-12-11)
[Full Changelog](https://github.com/tj-actions/branch-names/compare/c5308c6d98ef23ee7f672f6fc3aa92acd7ad611d...v1)
**Merged pull requests:**
- Update README.md [\#1](https://github.com/tj-actions/branch-names/pull/1) ([jackton1](https://github.com/jackton1))
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*

View File

@ -25,7 +25,7 @@ Get branch information without the `/ref/*` prefix
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Get branch names - name: Get branch names
id: branch-name id: branch-name
uses: tj-actions/branch-names@v2.2 uses: tj-actions/branch-names@v3
``` ```
## Examples ## Examples
@ -36,7 +36,7 @@ Get branch information without the `/ref/*` prefix
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Get branch names - name: Get branch names
id: branch-name id: branch-name
uses: tj-actions/branch-names@v2.2 uses: tj-actions/branch-names@v3
- name: Running on the default branch. - name: Running on the default branch.
if: steps.branch-name.outputs.is_default == 'true' if: steps.branch-name.outputs.is_default == 'true'
@ -101,7 +101,7 @@ on:
steps: steps:
- name: Get branch names. - name: Get branch names.
id: branch-names id: branch-names
uses: tj-actions/branch-names@v2.2 uses: tj-actions/branch-names@v3
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
ref: ${{ steps.branch-names.outputs.base_ref_branch }} ref: ${{ steps.branch-names.outputs.base_ref_branch }}