Skip to content

version change validation #1

version change validation

version change validation #1

name: "Create artifacts"

Check failure on line 1 in .github/workflows/call-check-version-changed.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/call-check-version-changed.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: compare_versions
on:
workflow_call:
outputs:
IS_SAME_VERSIONS:
description: "The name of requested build variant"
value: ${{ jobs.compare_versions.outputs.IS_SAME_VERSIONS }}
jobs:
# ${{ jobs.get_version_from_target_branch.outputs.TARGET_VERSION }}
get_version_from_target_branch:
name: Get version from target branch
runs-on: ubuntu-latest
outputs:
TARGET_VERSION: ${{ steps.properties.outputs.makeevrserg-project-version-string }}
steps:
- name: Checkout Git repo
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
# ${{ steps.properties.outputs.makeevrserg-project-version-string }}
- uses: christian-draeger/read-properties@1.1.1
id: properties
with:
path: './gradle.properties'
properties: 'makeevrserg.project.name makeevrserg.project.version.string'
# ${{ jobs.get_version_from_current_branch.outputs.CURRENT_VERSION }}
get_version_from_current_branch:
name: Get version from current branch
runs-on: ubuntu-latest
outputs:
CURRENT_VERSION: ${{ steps.properties.outputs.makeevrserg-project-version-string }}
steps:
- name: Checkout Git repo
uses: actions/checkout@v4
# ${{ steps.properties.outputs.makeevrserg-project-version-string }}
- uses: christian-draeger/read-properties@1.1.1
id: properties
with:
path: './gradle.properties'
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 }}"
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 }}