aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-04-06 21:08:40 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-04-06 21:08:40 +0300
commit5fa6ea3b1d1a78edc97608a3f92db07ab4ca19b7 (patch)
treec71e353d0e44cb00b2c3c6c066747644d70652c9 /.github/workflows/emails.yml
parentAdd new empty emails workflow (diff)
downloadguru-5fa6ea3b1d1a78edc97608a3f92db07ab4ca19b7.tar.gz
guru-5fa6ea3b1d1a78edc97608a3f92db07ab4ca19b7.tar.bz2
guru-5fa6ea3b1d1a78edc97608a3f92db07ab4ca19b7.zip
Add emails checker against bugzilla workflow
A new check that checks that all new emails written in metadata.xml correspond to existing user in bugzilla. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to '.github/workflows/emails.yml')
-rw-r--r--.github/workflows/emails.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/emails.yml b/.github/workflows/emails.yml
index 6871760f4..e7791f558 100644
--- a/.github/workflows/emails.yml
+++ b/.github/workflows/emails.yml
@@ -6,5 +6,34 @@ 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 }}