bump-version.yml - remove check about version alignment with main
This commit is contained in:
@@ -60,12 +60,6 @@ jobs:
|
|||||||
echo "::set-output name=branch_name::v${{steps.regex-match.outputs.group1}}"
|
echo "::set-output name=branch_name::v${{steps.regex-match.outputs.group1}}"
|
||||||
echo "::set-output name=branch_exist::$(git ls-remote --heads https://github.com/grafana/grafana.git v${{ steps.regex-match.outputs.group1 }}.x | wc -l)"
|
echo "::set-output name=branch_exist::$(git ls-remote --heads https://github.com/grafana/grafana.git v${{ steps.regex-match.outputs.group1 }}.x | wc -l)"
|
||||||
|
|
||||||
- name: Check input version is aligned with branch(not main)
|
|
||||||
if: ${{ github.event.inputs.version != '' && steps.intermedia.outputs.branch_exist != '0' && !contains(steps.intermedia.outputs.short_ref, steps.intermedia.outputs.branch_name) }}
|
|
||||||
run: |
|
|
||||||
echo " You need to run the workflow on branch v${{steps.regex-match.outputs.group1}}.x
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
- name: Check input version is aligned with branch(main)
|
- name: Check input version is aligned with branch(main)
|
||||||
if: ${{ github.event.inputs.version != '' && steps.intermedia.outputs.branch_exist == '0' && !contains(steps.intermedia.outputs.short_ref, 'main') }}
|
if: ${{ github.event.inputs.version != '' && steps.intermedia.outputs.branch_exist == '0' && !contains(steps.intermedia.outputs.short_ref, 'main') }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user