[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
echo "::set-output name=status_code::$?"
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
linux_build:
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 }}
runs-on: ubuntu-18.04
container: ghcr.io/lnis-uofu/openfpga-build-${{ matrix.config.cc}}