-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update workflows to use matrix strategy
- Loading branch information
1 parent
dfb7993
commit af3c1c7
Showing
16 changed files
with
232 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,29 @@ | ||
name: "Get Server Version" | ||
description: "Load latest working stable server version" | ||
description: "Load latest version if input is empty or other pre-determined strings " | ||
|
||
inputs: | ||
force: | ||
version: | ||
description: "Version Override" | ||
required: false | ||
|
||
outputs: | ||
version: | ||
description: "Clear Version (removes 'v' when necessary" | ||
description: "Version of the Server" | ||
value: ${{ steps.get_version_file.outputs.version }} | ||
is_semver: | ||
description: "If version is a SEMVER or tag/brach" | ||
value: ${{ steps.get_version_file.outputs.is_semver }} | ||
ete_version: | ||
description: "Etebase Version" | ||
value: ${{ steps.get_version_file.outputs.ete_version }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- id: get_version_file | ||
shell: bash | ||
env: | ||
OVERRIDE: ${{ inputs.force }} | ||
OVERRIDE: ${{ inputs.version }} | ||
run: | | ||
if [ -z "${OVERRIDE}" ]; then | ||
if [ -z "${OVERRIDE}" ] || [ "${OVERRIDE}" = "latest" ] || [ "${OVERRIDE}" = "stable" ] ; then | ||
source ./server_version | ||
else | ||
ETESYNC_VERSION="${OVERRIDE}" | ||
fi | ||
CLEAN_VERSION="${ETESYNC_VERSION#v}" | ||
if [[ ${CLEAN_VERSION} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
SEMVER='true' | ||
else | ||
SEMVER='false' | ||
fi | ||
echo "*Version*: ${CLEAN_VERSION}" >> $GITHUB_STEP_SUMMARY | ||
echo "*Is SemVer*? ${SEMVER}" >> $GITHUB_STEP_SUMMARY | ||
echo "*Etesync Version*: ${ETESYNC_VERSION}" >> $GITHUB_STEP_SUMMARY | ||
echo "version=${CLEAN_VERSION}" >> $GITHUB_OUTPUT | ||
echo "is_semver=${SEMVER}" >> $GITHUB_OUTPUT | ||
echo "ete_version=${ETESYNC_VERSION}" >> $GITHUB_OUTPUT | ||
echo "*Version*: ${ETESYNC_VERSION}" >> $GITHUB_STEP_SUMMARY | ||
echo "version=${ETESYNC_VERSION}" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: "Preocess Version Data" | ||
description: "Prepare and extract version information and variants" | ||
|
||
inputs: | ||
version: | ||
description: "the target server version" | ||
required: true | ||
|
||
outputs: | ||
version: | ||
description: "Clear Version (removes 'v' when necessary)" | ||
value: ${{ steps.get_version_file.outputs.version }} | ||
is_semver: | ||
description: "If version is a SEMVER or tag/brach" | ||
value: ${{ steps.get_version_file.outputs.is_semver }} | ||
ete_version: | ||
description: "Etebase Version" | ||
value: ${{ steps.get_version_file.outputs.ete_version }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- id: export_version | ||
shell: bash | ||
env: | ||
VERSION: ${{ inputs.version }} | ||
run: | | ||
echo $VERSION | ||
CLEAN_VERSION="${VERSION#v}" | ||
if [[ ${CLEAN_VERSION} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
SEMVER='true' | ||
ETESYNC_VERSION="v${CLEAN_VERSION}" | ||
else | ||
SEMVER='false' | ||
ETESYNC_VERSION="${CLEAN_VERSION}" | ||
fi | ||
echo "*Version*: ${CLEAN_VERSION}" >> $GITHUB_STEP_SUMMARY | ||
echo "*Is SemVer*? ${SEMVER}" >> $GITHUB_STEP_SUMMARY | ||
echo "*Etesync Version*: ${ETESYNC_VERSION}" >> $GITHUB_STEP_SUMMARY | ||
echo "version=${CLEAN_VERSION}" >> $GITHUB_OUTPUT | ||
echo "is_semver=${SEMVER}" >> $GITHUB_OUTPUT | ||
echo "ete_version=${ETESYNC_VERSION}" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.