diff --git a/.github/workflows/duplicates.yml b/.github/workflows/duplicates.yml index 6240adef05..3c12675ac0 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 966000a143..12f70387f0 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 }} + - 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 compare ref + uses: actions/checkout@v3 + with: + ref: ${{ steps.last_successful_commit.outputs.commit_hash }} - - name: Checkout code - uses: actions/checkout@v2 + - name: Checkout code + uses: actions/checkout@v3 - - uses: actions/setup-python@v3 - with: - python-version: '3.x' + - 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: 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 }} + - 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 30afdc58ca..be7ad363d2 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 2b6e93a1de..e0e4779132 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