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

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).