Merge pull request #205 from lnis-uofu/gg_ci_cd_dev

[CICD] Checking master branch in change_detect
This commit is contained in:
ganeshgore 2021-01-29 19:55:10 -07:00 committed by GitHub
commit af8d750170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}}