mirror of https://github.com/VLSIDA/OpenRAM.git
Don't run regress on pull requests
This commit is contained in:
parent
0315f6d3ad
commit
7d3015868a
|
|
@ -3,14 +3,11 @@ on:
|
||||||
push:
|
push:
|
||||||
branches-ignore:
|
branches-ignore:
|
||||||
- stable
|
- stable
|
||||||
pull_request:
|
|
||||||
branches-ignore:
|
|
||||||
- stable
|
|
||||||
jobs:
|
jobs:
|
||||||
# All tests should be run from this job
|
# All tests should be run from this job
|
||||||
regression_test:
|
regression_test:
|
||||||
# This job runs on pull requests or any push that doesn't have a new version
|
# This job runs on pull requests or any push that doesn't have a new version
|
||||||
if: ${{ github.event_name == 'pull_request' || startsWith(github.event.head_commit.message, 'Bump version:') == false }}
|
if: ${{ startsWith(github.event.head_commit.message, 'Bump version:') == false }}
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|
@ -52,14 +49,14 @@ jobs:
|
||||||
path: ${{ github.workspace }}/compiler/tests/results/*
|
path: ${{ github.workspace }}/compiler/tests/results/*
|
||||||
# This job triggers sync.yml workflow
|
# This job triggers sync.yml workflow
|
||||||
sync_trigger:
|
sync_trigger:
|
||||||
if: ${{ always() && github.event_name == 'push' && github.ref_name == 'dev' && github.repository == 'VLSIDA/PrivateRAM' && needs.regression_test.result == 'failure' }}
|
if: ${{ always() && github.ref_name == 'dev' && github.repository == 'VLSIDA/PrivateRAM' && needs.regression_test.result == 'failure' }}
|
||||||
needs: regression_test
|
needs: regression_test
|
||||||
uses: ./.github/workflows/sync.yml
|
uses: ./.github/workflows/sync.yml
|
||||||
secrets:
|
secrets:
|
||||||
WORKFLOW_ACCESS_TOKEN: ${{ secrets.WORKFLOW_ACCESS_TOKEN }}
|
WORKFLOW_ACCESS_TOKEN: ${{ secrets.WORKFLOW_ACCESS_TOKEN }}
|
||||||
# This job triggers version.yml workflow
|
# This job triggers version.yml workflow
|
||||||
version_trigger:
|
version_trigger:
|
||||||
if: ${{ github.event_name == 'push' && github.ref_name == 'dev' }}
|
if: ${{ github.ref_name == 'dev' }}
|
||||||
needs: regression_test
|
needs: regression_test
|
||||||
uses: ./.github/workflows/version.yml
|
uses: ./.github/workflows/version.yml
|
||||||
secrets:
|
secrets:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue