Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] CI: cancel previous runs on re-push, update to ubuntu-latest
@ 2022-05-17 16:23 classabbyamp
  2022-05-17 16:25 ` [PR PATCH] [Updated] " classabbyamp
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: classabbyamp @ 2022-05-17 16:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 648 bytes --]

There is a new pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages cancel-old-ci
https://github.com/void-linux/void-packages/pull/37170

CI: cancel previous runs on re-push, update to ubuntu-latest
- .github/workflows/build.yaml: switch to ubuntu-latest
- .github/workflows: add workflow to cancel runs on re-push

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**



A patch file from https://github.com/void-linux/void-packages/pull/37170.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cancel-old-ci-37170.patch --]
[-- Type: text/x-diff, Size: 1882 bytes --]

From a0107549052bb6a88aef9a65d3d76313dad46694 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
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 <dev@placeviolette.net>
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 }}

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Updated] CI: cancel previous runs on re-push, update to ubuntu-latest
  2022-05-17 16:23 [PR PATCH] CI: cancel previous runs on re-push, update to ubuntu-latest classabbyamp
@ 2022-05-17 16:25 ` classabbyamp
  2022-05-17 16:26 ` classabbyamp
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: classabbyamp @ 2022-05-17 16:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 695 bytes --]

There is an updated pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages cancel-old-ci
https://github.com/void-linux/void-packages/pull/37170

CI: cancel previous runs on re-push, update to ubuntu-latest
- .github/workflows/build.yaml: switch to ubuntu-latest
- .github/workflows: add workflow to cancel runs on re-push

follow-on to stale-closed #28481

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**


A patch file from https://github.com/void-linux/void-packages/pull/37170.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cancel-old-ci-37170.patch --]
[-- Type: text/x-diff, Size: 2530 bytes --]

From a0107549052bb6a88aef9a65d3d76313dad46694 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
Date: Tue, 17 May 2022 11:42:47 -0400
Subject: [PATCH 1/3] .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 <dev@placeviolette.net>
Date: Tue, 17 May 2022 12:21:56 -0400
Subject: [PATCH 2/3] .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 }}

From f581efb7deb26d0f86e49c408ea2bc89fb8a3b67 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
Date: Tue, 17 May 2022 12:25:31 -0400
Subject: [PATCH 3/3] chezmoi: test

---
 srcpkgs/chezmoi/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/chezmoi/template b/srcpkgs/chezmoi/template
index 119bcf35e55a..4a8ce1c4297e 100644
--- a/srcpkgs/chezmoi/template
+++ b/srcpkgs/chezmoi/template
@@ -1,7 +1,7 @@
 # Template file for 'chezmoi'
 pkgname=chezmoi
 version=2.15.4
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/twpayne/chezmoi/v2"
 go_build_tags="noembeddocs noupgrade"

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Updated] CI: cancel previous runs on re-push, update to ubuntu-latest
  2022-05-17 16:23 [PR PATCH] CI: cancel previous runs on re-push, update to ubuntu-latest classabbyamp
  2022-05-17 16:25 ` [PR PATCH] [Updated] " classabbyamp
@ 2022-05-17 16:26 ` classabbyamp
  2022-05-17 16:43 ` classabbyamp
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: classabbyamp @ 2022-05-17 16:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 695 bytes --]

There is an updated pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages cancel-old-ci
https://github.com/void-linux/void-packages/pull/37170

CI: cancel previous runs on re-push, update to ubuntu-latest
- .github/workflows/build.yaml: switch to ubuntu-latest
- .github/workflows: add workflow to cancel runs on re-push

follow-on to stale-closed #28481

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**


A patch file from https://github.com/void-linux/void-packages/pull/37170.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cancel-old-ci-37170.patch --]
[-- Type: text/x-diff, Size: 2533 bytes --]

From a0107549052bb6a88aef9a65d3d76313dad46694 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
Date: Tue, 17 May 2022 11:42:47 -0400
Subject: [PATCH 1/3] .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 <dev@placeviolette.net>
Date: Tue, 17 May 2022 12:21:56 -0400
Subject: [PATCH 2/3] .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 }}

From c3a6e5278a8061ef70368e211098869eb470579e Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
Date: Tue, 17 May 2022 12:25:31 -0400
Subject: [PATCH 3/3] chezmoi: test

yo
---
 srcpkgs/chezmoi/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/chezmoi/template b/srcpkgs/chezmoi/template
index 119bcf35e55a..4a8ce1c4297e 100644
--- a/srcpkgs/chezmoi/template
+++ b/srcpkgs/chezmoi/template
@@ -1,7 +1,7 @@
 # Template file for 'chezmoi'
 pkgname=chezmoi
 version=2.15.4
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/twpayne/chezmoi/v2"
 go_build_tags="noembeddocs noupgrade"

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Updated] CI: cancel previous runs on re-push, update to ubuntu-latest
  2022-05-17 16:23 [PR PATCH] CI: cancel previous runs on re-push, update to ubuntu-latest classabbyamp
  2022-05-17 16:25 ` [PR PATCH] [Updated] " classabbyamp
  2022-05-17 16:26 ` classabbyamp
@ 2022-05-17 16:43 ` classabbyamp
  2022-05-17 16:43 ` classabbyamp
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: classabbyamp @ 2022-05-17 16:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 701 bytes --]

There is an updated pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages cancel-old-ci
https://github.com/void-linux/void-packages/pull/37170

CI: cancel previous runs on re-push, update to ubuntu-latest
- .github/workflows/build.yaml: switch to ubuntu-latest
- .github/workflows/build.yaml: auto-cancel in-progress workflows

follow-on to stale-closed #28481

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**


A patch file from https://github.com/void-linux/void-packages/pull/37170.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cancel-old-ci-37170.patch --]
[-- Type: text/x-diff, Size: 2383 bytes --]

From a0107549052bb6a88aef9a65d3d76313dad46694 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
Date: Tue, 17 May 2022 11:42:47 -0400
Subject: [PATCH 1/3] .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 34aca4a122d8ae320576d6d18cc351c893a86937 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
Date: Tue, 17 May 2022 12:41:17 -0400
Subject: [PATCH 2/3] .github/workflows/build.yaml: auto-cancel in-progress
 workflows

---
 .github/workflows/build.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index c36ff666d4c3..4ad0e0822ad5 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -10,6 +10,10 @@ on:
     paths:
       - 'srcpkgs/**'
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   # Lint changed templates.
   xlint:

From 608749c2f3025001bb54884f96730067dcbf9774 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
Date: Tue, 17 May 2022 12:25:31 -0400
Subject: [PATCH 3/3] chezmoi: test

yo
---
 srcpkgs/chezmoi/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/chezmoi/template b/srcpkgs/chezmoi/template
index 119bcf35e55a..4a8ce1c4297e 100644
--- a/srcpkgs/chezmoi/template
+++ b/srcpkgs/chezmoi/template
@@ -1,7 +1,7 @@
 # Template file for 'chezmoi'
 pkgname=chezmoi
 version=2.15.4
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/twpayne/chezmoi/v2"
 go_build_tags="noembeddocs noupgrade"

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Updated] CI: cancel previous runs on re-push, update to ubuntu-latest
  2022-05-17 16:23 [PR PATCH] CI: cancel previous runs on re-push, update to ubuntu-latest classabbyamp
                   ` (2 preceding siblings ...)
  2022-05-17 16:43 ` classabbyamp
@ 2022-05-17 16:43 ` classabbyamp
  2022-05-17 16:46 ` classabbyamp
  2022-05-17 16:52 ` [PR PATCH] [Merged]: " the-maldridge
  5 siblings, 0 replies; 7+ messages in thread
From: classabbyamp @ 2022-05-17 16:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 701 bytes --]

There is an updated pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages cancel-old-ci
https://github.com/void-linux/void-packages/pull/37170

CI: cancel previous runs on re-push, update to ubuntu-latest
- .github/workflows/build.yaml: switch to ubuntu-latest
- .github/workflows/build.yaml: auto-cancel in-progress workflows

follow-on to stale-closed #28481

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**


A patch file from https://github.com/void-linux/void-packages/pull/37170.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cancel-old-ci-37170.patch --]
[-- Type: text/x-diff, Size: 2385 bytes --]

From a0107549052bb6a88aef9a65d3d76313dad46694 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
Date: Tue, 17 May 2022 11:42:47 -0400
Subject: [PATCH 1/3] .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 34aca4a122d8ae320576d6d18cc351c893a86937 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
Date: Tue, 17 May 2022 12:41:17 -0400
Subject: [PATCH 2/3] .github/workflows/build.yaml: auto-cancel in-progress
 workflows

---
 .github/workflows/build.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index c36ff666d4c3..4ad0e0822ad5 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -10,6 +10,10 @@ on:
     paths:
       - 'srcpkgs/**'
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   # Lint changed templates.
   xlint:

From f0eb60efc3c22781ba5b8a965a3bfc5de33df0c8 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
Date: Tue, 17 May 2022 12:25:31 -0400
Subject: [PATCH 3/3] chezmoi: test

yolo
---
 srcpkgs/chezmoi/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/chezmoi/template b/srcpkgs/chezmoi/template
index 119bcf35e55a..4a8ce1c4297e 100644
--- a/srcpkgs/chezmoi/template
+++ b/srcpkgs/chezmoi/template
@@ -1,7 +1,7 @@
 # Template file for 'chezmoi'
 pkgname=chezmoi
 version=2.15.4
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/twpayne/chezmoi/v2"
 go_build_tags="noembeddocs noupgrade"

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Updated] CI: cancel previous runs on re-push, update to ubuntu-latest
  2022-05-17 16:23 [PR PATCH] CI: cancel previous runs on re-push, update to ubuntu-latest classabbyamp
                   ` (3 preceding siblings ...)
  2022-05-17 16:43 ` classabbyamp
@ 2022-05-17 16:46 ` classabbyamp
  2022-05-17 16:52 ` [PR PATCH] [Merged]: " the-maldridge
  5 siblings, 0 replies; 7+ messages in thread
From: classabbyamp @ 2022-05-17 16:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 860 bytes --]

There is an updated pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages cancel-old-ci
https://github.com/void-linux/void-packages/pull/37170

CI: cancel previous runs on re-push, update to ubuntu-latest
- .github/workflows/build.yaml: switch to ubuntu-latest
- .github/workflows/build.yaml: auto-cancel in-progress workflows

follow-on to stale-closed #28481

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
  Confirmed that re-pushing cancelled the older run, as expected
![image](https://user-images.githubusercontent.com/5366828/168865143-12a319e8-d8d7-4954-8ecb-f4041a7495d6.png)


A patch file from https://github.com/void-linux/void-packages/pull/37170.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cancel-old-ci-37170.patch --]
[-- Type: text/x-diff, Size: 1732 bytes --]

From a0107549052bb6a88aef9a65d3d76313dad46694 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
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 34aca4a122d8ae320576d6d18cc351c893a86937 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
Date: Tue, 17 May 2022 12:41:17 -0400
Subject: [PATCH 2/2] .github/workflows/build.yaml: auto-cancel in-progress
 workflows

---
 .github/workflows/build.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index c36ff666d4c3..4ad0e0822ad5 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -10,6 +10,10 @@ on:
     paths:
       - 'srcpkgs/**'
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   # Lint changed templates.
   xlint:

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Merged]: CI: cancel previous runs on re-push, update to ubuntu-latest
  2022-05-17 16:23 [PR PATCH] CI: cancel previous runs on re-push, update to ubuntu-latest classabbyamp
                   ` (4 preceding siblings ...)
  2022-05-17 16:46 ` classabbyamp
@ 2022-05-17 16:52 ` the-maldridge
  5 siblings, 0 replies; 7+ messages in thread
From: the-maldridge @ 2022-05-17 16:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]

There's a merged pull request on the void-packages repository

CI: cancel previous runs on re-push, update to ubuntu-latest
https://github.com/void-linux/void-packages/pull/37170

Description:
- .github/workflows/build.yaml: switch to ubuntu-latest
- .github/workflows/build.yaml: auto-cancel in-progress workflows

follow-on to stale-closed #28481

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
  Confirmed that re-pushing cancelled the older run, as expected
![image](https://user-images.githubusercontent.com/5366828/168865143-12a319e8-d8d7-4954-8ecb-f4041a7495d6.png)


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-05-17 16:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-17 16:23 [PR PATCH] CI: cancel previous runs on re-push, update to ubuntu-latest classabbyamp
2022-05-17 16:25 ` [PR PATCH] [Updated] " classabbyamp
2022-05-17 16:26 ` classabbyamp
2022-05-17 16:43 ` classabbyamp
2022-05-17 16:43 ` classabbyamp
2022-05-17 16:46 ` classabbyamp
2022-05-17 16:52 ` [PR PATCH] [Merged]: " the-maldridge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).