From: "Viorel Munteanu" <ceamac@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: .github/workflows/
Date: Fri, 19 May 2023 18:51:19 +0000 (UTC) [thread overview]
Message-ID: <1684397927.69cbd3bb1b006841e041fd816628c11c6611c168.ceamac@gentoo> (raw)
commit: 69cbd3bb1b006841e041fd816628c11c6611c168
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu May 18 08:09:21 2023 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Thu May 18 08:18:47 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=69cbd3bb
pkgcheck.yml: notify on recoveries too
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
.github/workflows/pkgcheck.yml | 29 ++++++++++++++++++++++++++---
1 file changed, 26 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/pkgcheck.yml b/.github/workflows/pkgcheck.yml
index 32ce5ba8b..18911e4fe 100644
--- a/.github/workflows/pkgcheck.yml
+++ b/.github/workflows/pkgcheck.yml
@@ -12,18 +12,41 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - name: Prepare job
+ run: |
+ LAST_STATUS=$(gh run list -R ${GITHUB_REPOSITORY} \
+ --branch=dev \
+ --workflow=pkgcheck.yml \
+ --status=completed \
+ --json=event,conclusion \
+ --jq='first(.[] | select(.event != "pull_request")).conclusion'
+ )
+ IRC_NOTIFY=${{ github.repository == 'gentoo/guru' && github.event_name != 'pull_request' }}
+ echo "last_status=${LAST_STATUS}" >> "${GITHUB_ENV}"
+ echo "irc_notify=${IRC_NOTIFY}" >> "${GITHUB_ENV}"
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - name: Check out repository
+ uses: actions/checkout@v3
with:
ref: dev
- name: Run pkgcheck
uses: pkgcore/pkgcheck-action@v1
with:
args: --keywords=-RedundantVersion,-NonsolvableDepsInDev
- - name: Inform on IRC
- if: ${{ failure() && github.repository == 'gentoo/guru' && github.event_name != 'pull_request' }}
+ - name: Inform failure on IRC
+ if: ${{ failure() && env.last_status == 'success' && fromJSON(env.irc_notify) }}
uses: rectalogic/notify-irc@v1
with:
channel: "#gentoo-guru"
server: "irc.libera.chat"
nickname: "github-ci"
message: CI failure detected on job ${{ github.workflow }} - ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
+ - name: Inform recovery on IRC
+ if: ${{ success() && env.last_status != 'success' && fromJSON(env.irc_notify) }}
+ uses: rectalogic/notify-irc@v1
+ with:
+ channel: "#gentoo-guru"
+ server: "irc.libera.chat"
+ nickname: "github-ci"
+ message: CI on job ${{ github.workflow }} is green again. Thanks!
next reply other threads:[~2023-05-19 18:51 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-19 18:51 Viorel Munteanu [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-04-12 16:29 [gentoo-commits] repo/proj/guru:master commit in: .github/workflows/ Julien Roy
2023-06-15 9:33 Florian Schmaus
2023-04-20 19:40 Florian Schmaus
2023-04-01 21:30 Haelwenn Monnier
2023-01-14 18:43 Andrew Ammerlaan
2022-10-07 15:39 [gentoo-commits] repo/proj/guru:dev " Arthur Zamarin
2022-10-07 15:41 ` [gentoo-commits] repo/proj/guru:master " Arthur Zamarin
2022-04-14 13:39 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2022-04-14 13:39 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2022-04-06 19:43 Michał Górny
2021-02-19 10:14 Michał Górny
2021-02-19 10:14 Michał Górny
2021-02-16 7:52 [gentoo-commits] repo/proj/guru:dev " Theo Anderson
2021-02-16 21:10 ` [gentoo-commits] repo/proj/guru:master " Theo Anderson
2021-01-29 10:59 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-01-29 11:10 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-01-28 11:01 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-01-28 11:45 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-01-23 11:49 Michał Górny
2021-01-23 11:49 Michał Górny
2021-01-03 12:09 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1684397927.69cbd3bb1b006841e041fd816628c11c6611c168.ceamac@gentoo \
--to=ceamac@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox