Feature/29110 implement GitHub action to determine the latest stable version #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests get_last_stable_version composite action | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: | | |
| Tested version | |
| type: string | |
| required: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repository | |
| uses: actions/checkout@v4 | |
| - name: Get last stable version | |
| id: last-stable-version | |
| uses: ./.github/actions/get_last_stable_version | |
| with: | |
| repo_owner: wazuh | |
| repo_name: wazuh | |
| testing_version: ${{inputs.version}} | |
| - name: Show result | |
| run: | | |
| echo "${{ steps.last-stable-version.output.latest_stable_version }}" |