-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: notify api server of build (hopefully)
- Loading branch information
Showing
3 changed files
with
100 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: 'Determine API Server versions' | ||
description: 'Determine API Server versions' | ||
inputs: | ||
beta-branch: | ||
description: 'Name of branch for beta builds' | ||
required: true | ||
default: '' | ||
dev-branch: | ||
description: 'Name of branch for experimental builds' | ||
required: false | ||
default: '' | ||
outputs: | ||
branch: | ||
description: 'API Server branch' | ||
value: ${{ steps.versions.outputs.branch }} | ||
version: | ||
description: 'API Server version' | ||
value: ${{ steps.versions.outputs.version }} | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- id: versions | ||
name: Determine versions | ||
shell: bash | ||
run: | | ||
if [[ "${{ github.ref }}" == refs/tags/* ]] | ||
then | ||
VERSION="${{ github.ref_name }}" | ||
echo "stable release ${VERSION}" | ||
echo ::set-output name=branch::"stable" | ||
echo ::set-output name=version::"${VERSION}" | ||
elif [[ "${{ github.ref }}" == refs/heads/* && "${{ github.ref_name }}" == "${{ inputs.beta-branch }}" ]] | ||
then | ||
VERSION=$(cat BUILD) | ||
echo "beta build ${VERSION}" | ||
echo ::set-output name=branch::"beta" | ||
echo ::set-output name=version::"${VERSION}" | ||
elif [[ "${{ github.ref }}" == refs/heads/* && "${{ github.ref_name }}" == "${{ inputs.dev-branch }}" ]] | ||
then | ||
VERSION=$(cat BUILD) | ||
echo "dev build ${VERSION}" | ||
echo ::set-output name=branch::"experimental" | ||
echo ::set-output name=version::"${VERSION}" | ||
else | ||
echo "not uploading" | ||
fi |
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