From: "Anna Vyalkova" <cyber+gentoo@sysrq.in>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: scripts/, .github/workflows/
Date: Thu, 2 Feb 2023 06:15:21 +0000 (UTC) [thread overview]
Message-ID: <1675318458.87804196df681b345a2ba1b5d422447fc26a0852.cybertailor@gentoo> (raw)
commit: 87804196df681b345a2ba1b5d422447fc26a0852
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu Feb 2 05:54:30 2023 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Thu Feb 2 06:14:18 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=87804196
.github/workflows: update actions
* bump actions
* fix indentation and other issues detected by yamllint
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
.github/workflows/duplicates.yml | 20 ++++++------
.github/workflows/emails.yml | 66 +++++++++++++++++++++-------------------
.github/workflows/pkgcheck.yml | 16 +++++-----
scripts/email-checker.py | 10 +++---
4 files changed, 59 insertions(+), 53 deletions(-)
diff --git a/.github/workflows/duplicates.yml b/.github/workflows/duplicates.yml
index 6240adef0..3c12675ac 100644
--- a/.github/workflows/duplicates.yml
+++ b/.github/workflows/duplicates.yml
@@ -1,19 +1,21 @@
+---
+
name: duplicates
on:
push:
- branches: [ dev ]
+ branches: [dev]
pull_request:
- branches: [ dev ]
+ branches: [dev]
jobs:
build:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: Setup master gentoo repository
- run: |
- ./scripts/setup-master-gentoo.sh
- - name: Check for duplicates
- run: |
- ./scripts/check-duplicates.sh
+ - uses: actions/checkout@v3
+ - name: Setup master gentoo repository
+ run: |
+ ./scripts/setup-master-gentoo.sh
+ - name: Check for duplicates
+ run: |
+ ./scripts/check-duplicates.sh
diff --git a/.github/workflows/emails.yml b/.github/workflows/emails.yml
index 966000a14..12f70387f 100644
--- a/.github/workflows/emails.yml
+++ b/.github/workflows/emails.yml
@@ -1,43 +1,45 @@
+---
+
name: emails
on:
push:
- branches: [ dev ]
+ branches: [dev]
pull_request:
- branches: [ dev ]
+ branches: [dev]
jobs:
bugzilla:
runs-on: ubuntu-latest
steps:
- - uses: nrwl/last-successful-commit-action@v1
- id: last_successful_commit
- with:
- branch: 'dev'
- workflow_id: 'emails.yml'
- github_token: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Checkout compare ref
- uses: actions/checkout@v2
- with:
- ref: ${{ steps.last_successful_commit.outputs.commit_hash }}
-
- - name: Checkout code
- uses: actions/checkout@v2
-
- - uses: actions/setup-python@v3
- with:
- python-version: '3.x'
-
- - name: Get changed files
- id: changed-files
- uses: tj-actions/changed-files@v18.6
- with:
- base_sha: ${{ steps.last_successful_commit.outputs.commit_hash }}
- files: |
- **/metadata.xml
-
- - name: Check Emails against bugzilla
- run: |
- python ./scripts/email-checker.py ${{ steps.changed-files.outputs.all_changed_files }}
+ - uses: nrwl/last-successful-commit-action@v1
+ id: last_successful_commit
+ with:
+ branch: 'dev'
+ workflow_id: 'emails.yml'
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Checkout compare ref
+ uses: actions/checkout@v3
+ with:
+ ref: ${{ steps.last_successful_commit.outputs.commit_hash }}
+
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - uses: actions/setup-python@v3
+ with:
+ python-version: '3.x'
+
+ - name: Get changed files
+ id: changed-files
+ uses: tj-actions/changed-files@v18.6
+ with:
+ base_sha: ${{ steps.last_successful_commit.outputs.commit_hash }}
+ files: |
+ **/metadata.xml
+
+ - name: Check Emails against bugzilla
+ run: |
+ python ./scripts/email-checker.py ${{ steps.changed-files.outputs.all_changed_files }}
diff --git a/.github/workflows/pkgcheck.yml b/.github/workflows/pkgcheck.yml
index 30afdc58c..be7ad363d 100644
--- a/.github/workflows/pkgcheck.yml
+++ b/.github/workflows/pkgcheck.yml
@@ -1,17 +1,19 @@
+---
+
name: pkgcheck
on:
push:
- branches: [ dev ]
+ branches: [dev]
pull_request:
- branches: [ dev ]
+ branches: [dev]
jobs:
build:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: Run pkgcheck
- uses: pkgcore/pkgcheck-action@v1
- with:
- args: --keywords=-RedundantVersion,-NonsolvableDepsInDev
+ - uses: actions/checkout@v3
+ - name: Run pkgcheck
+ uses: pkgcore/pkgcheck-action@v1
+ with:
+ args: --keywords=-RedundantVersion,-NonsolvableDepsInDev
diff --git a/scripts/email-checker.py b/scripts/email-checker.py
index 2b6e93a1d..e0e477913 100755
--- a/scripts/email-checker.py
+++ b/scripts/email-checker.py
@@ -1,12 +1,12 @@
#!/usr/bin/env python3
-from http.client import HTTPSConnection
-import json
import sys
-from typing import Dict, Iterator, NamedTuple
-from urllib.parse import quote_plus
import xml.etree.ElementTree as ET
+from http.client import HTTPSConnection
+from typing import Iterator, NamedTuple
+from urllib.parse import quote_plus
+
class Maintainer(NamedTuple):
name: str
@@ -18,7 +18,7 @@ class Maintainer(NamedTuple):
resp = client.getresponse()
resp.read()
return resp.status == 200
- except:
+ except Exception:
return False
next reply other threads:[~2023-02-02 6:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-02 6:15 Anna Vyalkova [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-04-02 9:54 [gentoo-commits] repo/proj/guru:master commit in: .github/workflows/, scripts/ Andrew Ammerlaan
2021-04-02 9:52 ` [gentoo-commits] repo/proj/guru:dev commit in: scripts/, .github/workflows/ Andrew Ammerlaan
2021-04-02 9:54 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-04-02 9:52 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-02-17 15:22 Andrew Ammerlaan
2021-02-17 15:18 Andrew Ammerlaan
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=1675318458.87804196df681b345a2ba1b5d422447fc26a0852.cybertailor@gentoo \
--to=cyber+gentoo@sysrq.in \
--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