Split start and other event with the github action

This commit is contained in:
2022-05-30 14:49:46 +02:00
parent 268c46f981
commit 70229bafb9
3 changed files with 37 additions and 21 deletions
-20
View File
@@ -26,17 +26,6 @@ jobs:
version_draft: ${{ steps.semantic_setup.outputs.draft }}
version_name: ${{ steps.semantic_setup.outputs.version }}
steps:
- name: Setup bump release
id: bump_setup
run: |
if [ ${{ contains(github.event.pull_request.labels.*.name, 'release:major') }} == true ]; then
echo "::set-output name=type::major"
elif [ ${{ contains(github.event.pull_request.labels.*.name, 'release:minor') }} == true ]; then
echo "::set-output name=type::minor"
else
echo "::set-output name=type::patch"
fi
- name: Get the Semantic tag Version
id: get_semantic_setup
uses: oprypin/find-latest-tag@v1.1.0
@@ -46,15 +35,6 @@ jobs:
prefix: 'v'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Increment if a new release are needed to generated
if: ${{ github.event.action == 'opened' }}
id: new_semantic_setup
uses: zwaldowski/semver-release-action@v2
with:
bump: ${{ steps.bump_setup.outputs.type }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dry_run: true
- name: From all use case, get the Tag version
id: semantic_setup
run: |