From a0107549052bb6a88aef9a65d3d76313dad46694 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Tue, 17 May 2022 11:42:47 -0400 Subject: [PATCH 1/2] .github/workflows/build.yaml: switch to ubuntu-latest --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 177944e1c03c..c36ff666d4c3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -14,7 +14,7 @@ jobs: # Lint changed templates. xlint: name: Lint templates - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest env: PATH: '/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/tmp/bin' @@ -34,7 +34,7 @@ jobs: # Build changed packages. build: name: Build packages - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest if: "!contains(github.event.pull_request.title, '[ci skip]') && !contains(github.event.pull_request.body, '[ci skip]')" container: From 15ed76da0f8252a4f5afee6bb461d4d5c98ae7cf Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Tue, 17 May 2022 12:21:56 -0400 Subject: [PATCH 2/2] .github/workflows: add workflow to cancel runs on re-push --- .github/workflows/cancel.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/cancel.yaml diff --git a/.github/workflows/cancel.yaml b/.github/workflows/cancel.yaml new file mode 100644 index 000000000000..3ccc5620ca24 --- /dev/null +++ b/.github/workflows/cancel.yaml @@ -0,0 +1,13 @@ +name: Cancel Previous +on: + workflow_run: + workflows: ["Check build"] + types: + - requested +jobs: + cancel: + runs-on: ubuntu-latest + steps: + - uses: styfle/cancel-workflow-action@0.9.1 + with: + workflow_id: ${{ github.event.workflow.id }}