Skip to content

Commit

Permalink
Remove unnecessary check that tag was created on main branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapchicoma committed Feb 10, 2021
1 parent f8c4117 commit 4422016
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Github context will not contain tag branch,
# see https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context
# So creating this workaround to check that tag is present on remotes/origin/master
# If not - grep will exit with 1 code and fail the job
- name: Validate tag was created on main branch
run: git branch -a --contains $GITHUB_REF | grep "^(\s)*remotes/[a-zA-Z0-9]+/master$"
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
Expand Down

0 comments on commit 4422016

Please sign in to comment.