[CICD] Checking master branch in change_detect
This commit is contained in:
parent
bdf03c8b26
commit
30277188db
|
@ -38,10 +38,14 @@ jobs:
|
||||||
else
|
else
|
||||||
echo "::set-output name=status_code::$?"
|
echo "::set-output name=status_code::$?"
|
||||||
fi
|
fi
|
||||||
|
if [[ ${GITHUB_REF} == 'refs/heads/master' ]]; then
|
||||||
|
echo "Current brnach is master forcing source_modified"
|
||||||
|
echo "::set-output name=status_code::0"
|
||||||
|
fi
|
||||||
# Test the compilation compatibility
|
# Test the compilation compatibility
|
||||||
linux_build:
|
linux_build:
|
||||||
needs: change_detect
|
needs: change_detect
|
||||||
if: ${{ fromJSON(needs.change_detect.outputs.source_modified) || github.ref == 'refs/heads/master' }}
|
if: ${{ fromJSON(needs.change_detect.outputs.source_modified) }}
|
||||||
name: ${{ matrix.config.name }}
|
name: ${{ matrix.config.name }}
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
container: ghcr.io/lnis-uofu/openfpga-build-${{ matrix.config.cc}}
|
container: ghcr.io/lnis-uofu/openfpga-build-${{ matrix.config.cc}}
|
||||||
|
|
Loading…
Reference in New Issue