Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dili91 committed Dec 21, 2023
1 parent e1a088b commit af4c531
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
run: |
PROJECT_VERSION=$(./gradlew properties -q | grep "version:" | awk '{print $2}')
echo "::set-output name=project_version::$PROJECT_VERSION"
#FIXME: this is deprecated. See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
- name: Semantic versioning check
run: |
if [[ "${{steps.get_project_version.outputs.project_version}}" =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
checkout_ref: ${{ inputs.checkout_ref }}
ref: ${{ inputs.checkout_ref }}
- name: Setup JDK
uses: actions/setup-java@v4
with:
Expand All @@ -36,11 +36,11 @@ jobs:
uses: gradle/wrapper-validation-action@v1
- name: Create Snapshot version
run: |
echo "project_version_snapshot=${{inputs.project_version}}-${inputs.checkout_ref##*/}-SNAPSHOT" >> $GITHUB_ENV
echo "project_version_snapshot=${{inputs.project_version}}-${{inputs.checkout_ref##*/}}-SNAPSHOT" >> $GITHUB_ENV
echo "Snapshot project version created: ${{env.project_version_snapshot}}"
- name: Snapshot version check
run: |
SNAPSHOT_VERSION_REGEX="^([0-9]+)\.([0-9]+)\.([0-9]+)-${GITHUB_REF##*/}-SNAPSHOT$";
SNAPSHOT_VERSION_REGEX="^([0-9]+)\.([0-9]+)\.([0-9]+)-${{inputs.checkout_ref##*/}}-SNAPSHOT$";
if [[ "${{env.project_version_snapshot}}" =~ $SNAPSHOT_VERSION_REGEX ]]; then
echo "Project version ${{env.project_version_snapshot}} is valid"
else
Expand Down

0 comments on commit af4c531

Please sign in to comment.