mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-19 09:06:54 -04:00
Bumps the all group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [SamKirkland/FTP-Deploy-Action](https://github.com/samkirkland/ftp-deploy-action). Updates `actions/checkout` from 2 to 3 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) Updates `SamKirkland/FTP-Deploy-Action` from 4.3.0 to 4.3.4 - [Release notes](https://github.com/samkirkland/ftp-deploy-action/releases) - [Commits](https://github.com/samkirkland/ftp-deploy-action/compare/4.3.0...v4.3.4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major dependency-group: all - dependency-name: SamKirkland/FTP-Deploy-Action dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: Release Check
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'release/**'
|
|
- 'hotfix/**'
|
|
|
|
env:
|
|
JAVA_VERSION: 20
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
release-check-precondition:
|
|
name: Validate commits pushed to release/hotfix branch to fulfill release requirements
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- id: validate-pom-version
|
|
name: Validate POM version
|
|
run: |
|
|
if [[ $GITHUB_REF =~ refs/heads/(hotfix|release)/[0-9]+\.[0-9]+\.[0-9]+.* ]]; then
|
|
SEM_VER_STR=${GITHUB_REF##*/}
|
|
else
|
|
echo "Failed to parse version"
|
|
exit 1
|
|
fi
|
|
|
|
if [[ ${SEM_VER_STR} == `mvn help:evaluate -Dexpression=project.version -q -DforceStdout` ]]; then
|
|
echo "semVerStr=${SEM_VER_STR}" >> $GITHUB_OUTPUT
|
|
else
|
|
echo "Version not set in POM"
|
|
exit 1
|
|
fi
|
|
- name: Validate release in org.cryptomator.Cryptomator.metainfo.xml file
|
|
run: |
|
|
if ! grep -q "<release date=\".*\" version=\"${{ steps.validate-pom-version.outputs.semVerStr }}\"/>" dist/linux/common/org.cryptomator.Cryptomator.metainfo.xml; then
|
|
echo "Release not set in dist/linux/common/org.cryptomator.Cryptomator.metainfo.xml"
|
|
exit 1
|
|
fi |