2022-07-14 09:45:04 -04:00
|
|
|
name: Determine pseudo version
|
|
|
|
description: "Determine go-like pseudo version to use as container image tag."
|
2022-08-03 10:01:36 -04:00
|
|
|
|
2022-07-14 09:45:04 -04:00
|
|
|
outputs:
|
2023-03-14 09:53:33 -04:00
|
|
|
version:
|
|
|
|
description: "Version based on branch name"
|
|
|
|
value: ${{ steps.pseudo-version.outputs.version }}
|
2022-08-03 10:01:36 -04:00
|
|
|
branchName:
|
|
|
|
description: "Branch name"
|
|
|
|
value: ${{ steps.pseudo-version.outputs.branchName }}
|
|
|
|
|
2022-07-14 09:45:04 -04:00
|
|
|
runs:
|
2022-08-19 09:55:44 -04:00
|
|
|
using: "composite"
|
2022-07-14 09:45:04 -04:00
|
|
|
steps:
|
2023-03-14 09:53:33 -04:00
|
|
|
- name: get version
|
2022-08-19 09:55:44 -04:00
|
|
|
id: pseudo-version
|
2023-01-18 04:15:58 -05:00
|
|
|
shell: bash
|
2023-09-29 04:05:02 -04:00
|
|
|
env:
|
|
|
|
WORKSPACE_STATUS_TOOL: ${{ github.workspace }}/tools/workspace_status.sh
|
2022-08-19 09:55:44 -04:00
|
|
|
run: |
|
2023-09-29 04:05:02 -04:00
|
|
|
version=$(${WORKSPACE_STATUS_TOOL} | grep STABLE_STAMP_VERSION | cut -d ' ' -f2)
|
|
|
|
branchName=$(git branch --show-current | tr '/' '-')
|
|
|
|
echo "version=v${version}" | tee -a "$GITHUB_OUTPUT"
|
2023-04-14 12:25:53 -04:00
|
|
|
echo "branchName=${branchName}" | tee -a "$GITHUB_OUTPUT"
|