mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-06-16 04:48:46 -04:00
Bumps the github-actions group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `6.0.2` | `6.0.3` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `7.0.0` | `7.0.1` | | [softprops/action-gh-release](https://github.com/softprops/action-gh-release) | `2.5.0` | `3.0.0` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `8.0.0` | `8.0.1` | | [SamKirkland/FTP-Deploy-Action](https://github.com/samkirkland/ftp-deploy-action) | `4.3.6` | `4.4.0` | | [actions/cache](https://github.com/actions/cache) | `5.0.4` | `5.0.5` | | [actions/github-script](https://github.com/actions/github-script) | `8.0.0` | `9.0.0` | | [actions/stale](https://github.com/actions/stale) | `10.2.0` | `10.3.0` | Updates `actions/checkout` from 6.0.2 to 6.0.3 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](de0fac2e45...df4cb1c069) Updates `actions/upload-artifact` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](bbbca2ddaa...043fb46d1a) Updates `softprops/action-gh-release` from 2.5.0 to 3.0.0 - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v2.5.0...b4309332981a82ec1c5618f44dd2e27cc8bfbfda) Updates `actions/download-artifact` from 8.0.0 to 8.0.1 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v8...3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c) Updates `SamKirkland/FTP-Deploy-Action` from 4.3.6 to 4.4.0 - [Release notes](https://github.com/samkirkland/ftp-deploy-action/releases) - [Commits](a51268f67f...110f9186c0) Updates `actions/cache` from 5.0.4 to 5.0.5 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](668228422a...27d5ce7f10) Updates `actions/github-script` from 8.0.0 to 9.0.0 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](ed597411d8...3a2844b7e9) Updates `actions/stale` from 10.2.0 to 10.3.0 - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](b5d41d4e1d...eb5cf3af3a) --- updated-dependencies: - dependency-name: actions/cache dependency-version: 5.0.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/checkout dependency-version: 6.0.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/download-artifact dependency-version: 8.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/github-script dependency-version: 9.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/stale dependency-version: 10.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: SamKirkland/FTP-Deploy-Action dependency-version: 4.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: softprops/action-gh-release dependency-version: 3.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
87 lines
3.2 KiB
YAML
87 lines
3.2 KiB
YAML
name: Parse and Validate a version string or tag
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
version:
|
|
description: "A specific version to use"
|
|
required: false
|
|
type: string
|
|
outputs:
|
|
semVerStr:
|
|
description: "The full version string."
|
|
value: ${{ jobs.determine-version.outputs.semVerStr}}
|
|
semVerNum:
|
|
description: "The numerical part of the version string"
|
|
value: ${{ jobs.determine-version.outputs.semVerNum}}
|
|
semVerSuffix:
|
|
description: "The suffix of the version string"
|
|
value: ${{ jobs.determine-version.outputs.semVerSuffix}}
|
|
revNum:
|
|
description: "The revision number"
|
|
value: ${{ jobs.determine-version.outputs.revNum}}
|
|
versionType:
|
|
description: "Type of the version. Values are [stable, alpha, beta, rc, unknown]"
|
|
value: ${{ jobs.determine-version.outputs.type }}
|
|
|
|
env:
|
|
JAVA_DIST: 'temurin'
|
|
JAVA_VERSION: 26
|
|
|
|
jobs:
|
|
determine-version:
|
|
name: 'Determines the version following semver'
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
semVerNum: ${{ steps.versions.outputs.semVerNum }}
|
|
semVerStr: ${{ steps.versions.outputs.semVerStr }}
|
|
semVerSuffix: ${{ steps.versions.outputs.semVerSuffix }}
|
|
revNum: ${{ steps.versions.outputs.revNum }}
|
|
type: ${{ steps.versions.outputs.type}}
|
|
steps:
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Java
|
|
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
|
|
with:
|
|
distribution: ${{ env.JAVA_DIST }}
|
|
java-version: ${{ env.JAVA_VERSION }}
|
|
cache: 'maven'
|
|
- id: versions
|
|
name: Get version information
|
|
run: |
|
|
if [[ $GITHUB_REF =~ refs/tags/[0-9]+\.[0-9]+\.[0-9]+.* ]]; then
|
|
SEM_VER_STR=${GITHUB_REF##*/}
|
|
elif [[ "${VERSION_STRING}" =~ [0-9]+\.[0-9]+\.[0-9]+.* ]]; then
|
|
SEM_VER_STR="${VERSION_STRING}"
|
|
else
|
|
SEM_VER_STR=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout`
|
|
fi
|
|
|
|
SEM_VER_NUM=$(echo ${SEM_VER_STR} | sed -E 's/([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
|
|
SEM_VER_SUFFIX="${SEM_VER_STR#"$SEM_VER_NUM"}"
|
|
REVCOUNT=`git rev-list --count HEAD`
|
|
|
|
TYPE="unknown"
|
|
if [[ -z $SEM_VER_SUFFIX ]]; then
|
|
TYPE="stable"
|
|
elif [[ $SEM_VER_SUFFIX =~ -alpha[1-9]+$ ]]; then
|
|
TYPE="alpha"
|
|
elif [[ $SEM_VER_SUFFIX =~ -beta[1-9]+$ ]]; then
|
|
TYPE="beta"
|
|
elif [[ $SEM_VER_SUFFIX =~ -rc[1-9]+$ ]]; then
|
|
TYPE="rc"
|
|
fi
|
|
|
|
echo "semVerStr=${SEM_VER_STR}" >> $GITHUB_OUTPUT
|
|
echo "semVerNum=${SEM_VER_NUM}" >> $GITHUB_OUTPUT
|
|
echo "semVerSuffix=${SEM_VER_SUFFIX}" >> $GITHUB_OUTPUT
|
|
echo "revNum=${REVCOUNT}" >> $GITHUB_OUTPUT
|
|
echo "type=${TYPE}" >> $GITHUB_OUTPUT
|
|
env:
|
|
VERSION_STRING: ${{ inputs.version }}
|
|
- name: Validate Version
|
|
uses: skymatic/semver-validation-action@7c80b6b03a18b42884761daa9862ff5683ec8c8a # v4.0.0
|
|
with:
|
|
version: ${{ steps.versions.outputs.semVerStr }} |