ci: ensure git safe dir for cross-build prepare stage
This commit is contained in:
parent
8a9b0649e7
commit
bdb370bf4e
|
@ -23,6 +23,7 @@ on:
|
|||
jobs:
|
||||
prepare:
|
||||
runs-on: ubuntu-20.04
|
||||
container: ghcr.io/emqx/emqx-builder/5.0-17:1.13.4-24.2.1-1-ubuntu20.04
|
||||
outputs:
|
||||
BUILD_PROFILE: ${{ steps.get_profile.outputs.BUILD_PROFILE }}
|
||||
IS_EXACT_TAG: ${{ steps.get_profile.outputs.IS_EXACT_TAG }}
|
||||
|
@ -38,6 +39,7 @@ jobs:
|
|||
id: get_profile
|
||||
run: |
|
||||
cd source
|
||||
git config --global --add safe.directory "$(pwd)"
|
||||
tag=${{ github.ref }}
|
||||
if git describe --tags --match "[v|e]*" --exact; then
|
||||
echo "This is an exact git tag, will publish release"
|
||||
|
|
Loading…
Reference in New Issue