[CICD] Checking master branch in change_detect

This commit is contained in:
Ganesh Gore 2021-01-29 12:58:53 -07:00
parent bdf03c8b26
commit 30277188db
1 changed files with 5 additions and 1 deletions

View File

@ -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}}