ci: ensure github checkout@v1 and checkout@v2 fetch full history
for release builds, alwasy fetch full history otherwise the old tags will not be found resulting in no relup generated
This commit is contained in:
parent
7317a8aba8
commit
a48c75594e
|
@ -29,6 +29,7 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: source
|
path: source
|
||||||
|
fetch-depth: 0 # clone full git history
|
||||||
- name: detect-profiles
|
- name: detect-profiles
|
||||||
id: detect-profiles
|
id: detect-profiles
|
||||||
uses: ./source/.github/actions/detect-profiles
|
uses: ./source/.github/actions/detect-profiles
|
||||||
|
|
|
@ -34,6 +34,8 @@ jobs:
|
||||||
# keep using v1 for now as the otp-23 image has an old version git
|
# keep using v1 for now as the otp-23 image has an old version git
|
||||||
# TODO: change to v3 after OTP is upgraded to 23.3.4.18-1
|
# TODO: change to v3 after OTP is upgraded to 23.3.4.18-1
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # clone full git history
|
||||||
- name: fix-git-unsafe-repository
|
- name: fix-git-unsafe-repository
|
||||||
run: git config --global --add safe.directory /__w/emqx/emqx
|
run: git config --global --add safe.directory /__w/emqx/emqx
|
||||||
- uses: ./.github/actions/detect-profiles
|
- uses: ./.github/actions/detect-profiles
|
||||||
|
@ -79,6 +81,8 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # clone full git history
|
||||||
- name: ensure access to github
|
- name: ensure access to github
|
||||||
if: endsWith(github.repository, 'enterprise')
|
if: endsWith(github.repository, 'enterprise')
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -14,6 +14,8 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # clone full git history
|
||||||
- id: detect-profiles
|
- id: detect-profiles
|
||||||
uses: ./.github/actions/detect-profiles
|
uses: ./.github/actions/detect-profiles
|
||||||
|
|
||||||
|
@ -55,6 +57,8 @@ jobs:
|
||||||
-d "{\"repo\":\"emqx/emqx\", \"tag\": \"${{ github.ref_name }}\" }" \
|
-d "{\"repo\":\"emqx/emqx\", \"tag\": \"${{ github.ref_name }}\" }" \
|
||||||
${{ secrets.EMQX_IO_RELEASE_API }}
|
${{ secrets.EMQX_IO_RELEASE_API }}
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # clone full git history
|
||||||
- name: get version
|
- name: get version
|
||||||
id: version
|
id: version
|
||||||
run: echo "version=$(./pkg-vsn.sh)" >> $GITHUB_OUTPUT
|
run: echo "version=$(./pkg-vsn.sh)" >> $GITHUB_OUTPUT
|
||||||
|
|
Loading…
Reference in New Issue