Skip to content

Commit

Permalink
version change validation
Browse files Browse the repository at this point in the history
  • Loading branch information
makeevrserg committed Sep 10, 2024
1 parent 0cf26e9 commit 1600e7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/call-check-version-changed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ jobs:
properties: 'makeevrserg.project.name makeevrserg.project.version.string'

compare_versions:
name: "Compare versions ${{ jobs.get_version_from_target_branch.outputs.TARGET_VERSION }} and ${{ jobs.get_version_from_current_branch.outputs.CURRENT_VERSION }}"
needs: [ get_version_from_current_branch, get_version_from_target_branch ]
name: "Compare versions ${{ needs.get_version_from_target_branch.outputs.TARGET_VERSION }} and ${{ needs.get_version_from_current_branch.outputs.CURRENT_VERSION }}"
runs-on: ubuntu-latest
outputs:
IS_SAME_VERSIONS: ${{ jobs.get_version_from_target_branch.outputs.TARGET_VERSION }} == ${{ jobs.get_version_from_current_branch.outputs.CURRENT_VERSION }}
IS_SAME_VERSIONS: ${{ needs.get_version_from_target_branch.outputs.TARGET_VERSION }} == ${{ needs.get_version_from_current_branch.outputs.CURRENT_VERSION }}
steps:
# steps.create_baseline_task.outputs.BASELINE_TASK
- id: print
run: |
echo "${{ jobs.get_version_from_target_branch.outputs.TARGET_VERSION }}"
echo "${{ jobs.get_version_from_current_branch.outputs.TARGET_VERSION }}"
echo "${{ needs.get_version_from_target_branch.outputs.TARGET_VERSION }}"
echo "${{ needs.get_version_from_current_branch.outputs.TARGET_VERSION }}"
4 changes: 2 additions & 2 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
uses: ./.github/workflows/call-check-version-changed.yml
detekt_validation:
name: "Detekt"
if: ${{ jobs.check_versions.outputs.IS_SAME_VERSIONS }} == true
if: ${{ needs.check_versions.outputs.IS_SAME_VERSIONS }} == true
needs: [ gradle_validation,check_versions ]
uses: ./.github/workflows/call-detekt-validation.yml
tests_validation:
name: "Tests"
if: ${{ jobs.check_versions.outputs.IS_SAME_VERSIONS }} == true
if: ${{ needs.check_versions.outputs.IS_SAME_VERSIONS }} == true
needs: [ gradle_validation,check_versions ]
uses: ./.github/workflows/call-tests-validation.yml

0 comments on commit 1600e7d

Please sign in to comment.