constellation/.github/actions/pseudo_version/action.yml
Fabian Kammel 085f548333 GitHub action pin-by-hash & dependabot (#283)
* 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>
2022-07-20 10:48:01 +02:00

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