aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2023-02-02 10:54:30 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2023-02-02 11:14:18 +0500
commit87804196df681b345a2ba1b5d422447fc26a0852 (patch)
tree5ba1af5f8632f3f3b6a38fa6a34a3f7e8082e6ef
parentgames-emulation/citra*: do not depend on dev-libs/cpp-httplib (diff)
downloadguru-87804196df681b345a2ba1b5d422447fc26a0852.tar.gz
guru-87804196df681b345a2ba1b5d422447fc26a0852.tar.bz2
guru-87804196df681b345a2ba1b5d422447fc26a0852.zip
.github/workflows: update actions
* bump actions * fix indentation and other issues detected by yamllint Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
-rw-r--r--.github/workflows/duplicates.yml20
-rw-r--r--.github/workflows/emails.yml66
-rw-r--r--.github/workflows/pkgcheck.yml16
-rwxr-xr-xscripts/email-checker.py10
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