mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-09-20 16:26:19 +00:00
085f548333
* remove Sunday and Monday morning runs, little value * run test lint on main, as we do for all linters * fixup outdated instructions * use version hash instead of tags * use dependabot for github actions Signed-off-by: Fabian Kammel <fk@edgeless.systems>
27 lines
787 B
YAML
27 lines
787 B
YAML
name: Determine pseudo version
|
|
description: "Determine go-like pseudo version to use as container image tag."
|
|
outputs:
|
|
pseudo-version:
|
|
description: "Pseudo version based on the current HEAD"
|
|
value: ${{ steps.pseudo-version.outputs.pseudo-version }}
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a
|
|
with:
|
|
go-version: "1.18"
|
|
- name: get pseudo version
|
|
id: pseudo-version
|
|
run: |
|
|
set -e
|
|
set -o pipefail
|
|
if $(git rev-parse --is-shallow-repository); then
|
|
git fetch --prune --unshallow --tags -v
|
|
else
|
|
git fetch --tags -v
|
|
fi
|
|
echo "::set-output name=pseudo-version::$(go run .)"
|
|
working-directory: hack/pseudo-version
|
|
shell: bash
|