Merge pull request #9174 from emqx/1019-fix-ci-workflow

1019 fix ci workflow
This commit is contained in:
JimMoen 2022-10-24 17:42:35 +08:00 committed by GitHub
commit 3c1608f883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -35,6 +35,8 @@ runs:
with: with:
path: ~/.kerl/${{ inputs.otp }} path: ~/.kerl/${{ inputs.otp }}
key: otp-install-${{ inputs.otp }}-${{ inputs.os }}-static-ssl-disable-hipe-disable-jit key: otp-install-${{ inputs.otp }}-${{ inputs.os }}-static-ssl-disable-hipe-disable-jit
restore-keys: |
otp-install-${{ inputs.otp }}-${{ inputs.os }}
- name: build erlang - name: build erlang
if: steps.cache.outputs.cache-hit != 'true' if: steps.cache.outputs.cache-hit != 'true'
shell: bash shell: bash
@ -93,4 +95,5 @@ runs:
exit 1 exit 1
fi fi
cd .. cd ..
# test with a spaces in path
rm -rf "emqx home" rm -rf "emqx home"

View File

@ -31,9 +31,8 @@ jobs:
path: source path: source
fetch-depth: 0 fetch-depth: 0
- id: detect-profiles - id: detect-profiles
uses: ./.github/actions/detect-profiles uses: ./source/.github/actions/detect-profiles
with: with:
path: source
ci_git_token: ${{ secrets.CI_GIT_TOKEN }} ci_git_token: ${{ secrets.CI_GIT_TOKEN }}
- name: get_all_deps - name: get_all_deps
if: endsWith(github.repository, 'emqx') if: endsWith(github.repository, 'emqx')

View File

@ -18,8 +18,7 @@ jobs:
path: source path: source
fetch-depth: 0 fetch-depth: 0
- id: detect-profiles - id: detect-profiles
working-directory: source uses: ./source/.github/actions/detect-profiles
uses: ./.github/actions/detect-profiles
with: with:
ci_git_token: ${{ secrets.CI_GIT_TOKEN }} ci_git_token: ${{ secrets.CI_GIT_TOKEN }}