diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4e9228d..f8fb93b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,11 @@ name: gcc on: push: + branches: + - main pull_request: + branches: + - main workflow_dispatch: schedule: - cron: '0 9 * * *' # 9:00am UTC, 1:00am PST. @@ -14,6 +18,11 @@ env: UBUNTU_NAME: focal UBUNTU_VERSION: 20.04 +# Cancel previously running PR jobs +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + jobs: compile_and_test: name: Compile and test diff --git a/.github/workflows/maliput_full.yml b/.github/workflows/maliput_full.yml index 597c10e..84caac8 100644 --- a/.github/workflows/maliput_full.yml +++ b/.github/workflows/maliput_full.yml @@ -2,6 +2,8 @@ name: maliput_full_build on: push: + branches: + - main pull_request: branches: - main @@ -13,6 +15,11 @@ env: PACKAGE_NAME: maliput_full ROS_DISTRO: foxy +# Cancel previously running PR jobs +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + jobs: compile_and_test: name: Build