-
Notifications
You must be signed in to change notification settings - Fork 33
35 lines (31 loc) · 1.17 KB
/
_pr-comment_jexec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: PR comment JEXEC
# This workflow is triggered after the linting action is complete
on:
workflow_run:
workflows: ["JEXEC in translations v4", "JEXEC in translations v5"]
types: [completed]
jobs:
comment:
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: write
actions: write
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- name: on artifact
id: artifact
uses: marocchino/on_artifact@v2
with:
name: JEXEC-logs
- uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
header: JEXEC ${{ steps.artifact.outputs.pr_number }} ${{ steps.artifact.outputs.jversion }}
number: ${{ steps.artifact.outputs.pr_number }}
message: |
The following translation files don't contain the JEXEC on ${{ steps.artifact.outputs.pr_sha }}
```
${{ steps.artifact.outputs.jexec_result }}
```
Affecting ${{ steps.artifact.outputs.files_affected_jexec }} files in ${{ steps.artifact.outputs.languagepacks_affected_jexec }} language packs.