Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snapshot releases #986

Merged
merged 5 commits into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ concurrency:
jobs:
prepare-version:
runs-on: ubuntu-latest
outputs:
version: ${{steps.snapshot-version.outputs.version}}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -49,16 +51,22 @@ jobs:
cache: 'maven'

- name: Retrieve and export project version
id: project-version
run: |
version=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "Project version: ${version}"
echo "version=${version}" >> $GITHUB_OUTPUT

- name: Override project version if requested
if: ${{ inputs.version != '' }}
id: snapshot-version
run: |
echo "Version override requested: ${{inputs.version}}"
echo "version=${{inputs.version}}" >> $GITHUB_OUTPUT
if [ -z "${{inputs.version}}" ];
then
echo "version=${{steps.project-version.outputs.version}}" >> $GITHUB_OUTPUT
else
echo "Version override requested: ${{inputs.version}}"
echo "version=${{inputs.version}}" >> $GITHUB_OUTPUT
fi

deploy-snapshot:
name: Deploy Snapshots
Expand Down