diff --git a/.github/workflows/main.yml b/.github/workflows/build.yml similarity index 96% rename from .github/workflows/main.yml rename to .github/workflows/build.yml index 708ec6a..6048ed1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/build.yml @@ -4,12 +4,12 @@ on: push: branches: - main - pull_request: - branches: - - main release: types: - created + workflow_run: + workflows: + - pull-request workflow_dispatch: jobs: @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v2 with: submodules: true - + - name: Prepare Lattice Diamond license env: ENCODED_LICENSE: ${{ secrets.LATTICE_DIAMOND_LICENSE }} diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..04b321d --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,14 @@ +name: pull-request + +on: + pull_request: + branches: + - main + +jobs: + trigger-pull-request-build: + runs-on: ubuntu-latest + + steps: + - name: Trigger PR build + run: echo "Triggering \"${{ github.event.pull_request.title }}\" build"