Files
guru/.github/workflows/emails.yml
Anna (cybertailor) Vyalkova 14ed45c186 .github/workflows: checkout submodules
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2023-04-23 17:04:37 +05:00

58 lines
1.5 KiB
YAML

---
name: emails
on:
push:
branches: [dev]
pull_request:
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@v3
with:
ref: ${{ steps.last_successful_commit.outputs.commit_hash }}
submodules: true
- name: Checkout code
uses: actions/checkout@v3
with:
ref: dev
submodules: true
- 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 }}
- name: Inform on IRC
if: ${{ failure() && github.repository == 'gentoo/guru' && github.event_name == 'push' }}
uses: rectalogic/notify-irc@v1
with:
channel: "#gentoo-guru"
server: "irc.libera.chat"
nickname: "github-ci"
message: CI failure detected on job ${{ github.workflow }} - ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}