git config --global --add safe.directory .
git config --global --add safe.directory '*' git config --global --add safe.directory .
This commit is contained in:
parent
7ec7ecde6b
commit
1356780d7d
|
@ -19,6 +19,7 @@ jobs:
|
||||||
- name: Retrieve version
|
- name: Retrieve version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
git config --global --add safe.directory '*'
|
||||||
VERSION=$(git describe --abbrev=0)
|
VERSION=$(git describe --abbrev=0)
|
||||||
echo "::set-output name=VERSION::$VERSION"
|
echo "::set-output name=VERSION::$VERSION"
|
||||||
id: version
|
id: version
|
||||||
|
@ -128,6 +129,7 @@ jobs:
|
||||||
- name: Retrieve version
|
- name: Retrieve version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
git config --global --add safe.directory '*'
|
||||||
VERSION=$(git describe --abbrev=0)
|
VERSION=$(git describe --abbrev=0)
|
||||||
echo "::set-output name=VERSION::$VERSION"
|
echo "::set-output name=VERSION::$VERSION"
|
||||||
id: version
|
id: version
|
||||||
|
|
1
Makefile
1
Makefile
|
@ -9,6 +9,7 @@ all: generate-version-and-build
|
||||||
MAKEFLAGS += --no-print-directory
|
MAKEFLAGS += --no-print-directory
|
||||||
|
|
||||||
generate-version-and-build:
|
generate-version-and-build:
|
||||||
|
git config --global --add safe.directory "$(abspath .)"
|
||||||
@export GIT_CEILING_DIRECTORIES="$(realpath $(CURDIR)/..)" && \
|
@export GIT_CEILING_DIRECTORIES="$(realpath $(CURDIR)/..)" && \
|
||||||
tag="$$(git describe --tags --abbrev=0 2>/dev/null)" && \
|
tag="$$(git describe --tags --abbrev=0 2>/dev/null)" && \
|
||||||
ver="$$(printf 'package main\n\nvar Version = "%s"\n' "$$tag")" && \
|
ver="$$(printf 'package main\n\nvar Version = "%s"\n' "$$tag")" && \
|
||||||
|
|
Loading…
Reference in New Issue