Skip to content

prepare-release

prepare-release #17

Workflow file for this run

name: prepare-release
on:
workflow_dispatch:
inputs:
release:
description: Type of release
required: true
type: choice
options:
- PATCH
- MINOR
- MAJOR
default: PATCH
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: corretto
cache: maven
- run: >
pwd
- run: >
echo "The release type should be ${{ inputs.release }}"
- run: ls
- run: |
echo $release_type
env:
release_type: ${{ inputs.release }}
- name: Determine new versions
id: versions
run: |
echo "release_version=$(./.github/workflows/maven-version-determiner.py release-version $release_type)" >> "$GITHUB_ENV"
echo "snapshot_version=$(./.github/workflows/maven-version-determiner.py snapshot-version $release_type)" >> "$GITHUB_ENV"
echo "version_tag=$(./.github/workflows/maven-version-determiner.py version-tag $release_type)" >> "$GITHUB_ENV"
env:
release_type: ${{ inputs.release }}
- run: |
echo $release_version
echo $snapshot_version
echo $version_tag