forked from CodandoTV/Netflix-Android
-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (41 loc) · 1.29 KB
/
popcorn.yaml
File metadata and controls
48 lines (41 loc) · 1.29 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Popcorn
on:
pull_request:
branches: ["master"]
paths:
- "**/build-logic/**"
- "**.kts"
- "**/popcorn.yml"
jobs:
popcorn:
runs-on: ubuntu-latest
env:
MOVIE_DB_API_TOKEN: ${{ secrets.MOVIE_DB_API_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: ./.github/actions/java
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run popcorn
id: module_analysis
run: ./gradlew popcornParent -PerrorReportEnabled
- name: Read Markdown file
if: failure()
id: read_md
run: |
content=$(find . -type f -regex ".*/build/reports/popcornguineapig/errorReport.md" -exec cat {} +)
echo "content<<EOF" >> $GITHUB_OUTPUT
echo "$content" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Post comment with module analysis
if: failure()
uses: thollander/actions-comment-pull-request@v3
with:
comment-tag: module-analysis-report
message: ${{ steps.read_md.outputs.content }}
- name: Delete comment with module analysis
uses: thollander/actions-comment-pull-request@v3
with:
comment-tag: module-analysis-report
mode: delete