mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
.github/workflows: update actions
* bump actions * fix indentation and other issues detected by yamllint Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
20
.github/workflows/duplicates.yml
vendored
20
.github/workflows/duplicates.yml
vendored
@@ -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
|
||||
|
||||
56
.github/workflows/emails.yml
vendored
56
.github/workflows/emails.yml
vendored
@@ -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 }}
|
||||
|
||||
16
.github/workflows/pkgcheck.yml
vendored
16
.github/workflows/pkgcheck.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user