Skip to content

Commit

Permalink
restore junit report
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute authored Jan 18, 2024
1 parent 9b5854b commit 497eda4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ jobs:
name: Java CI
uses: KatsuteDev/Workflows/.github/workflows/java.ci.yml@main
with:
package: true
package: true
secrets: inherit
15 changes: 11 additions & 4 deletions .github/workflows/mal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,24 @@ jobs:
runs-on: ubuntu-latest
if: contains('OWNER, MEMBER, COLLABORATOR', github.event.comment.author_association) && contains(github.event.comment.body, 'mal ')
steps:
- name: Authenticate
id: auth
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.KDEVBOT_APP_ID }}
private-key: ${{ secrets.KDEVBOT_PRIVATE_KEY }}

- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{ secrets.BOT }}
token: ${{ steps.auth.outputs.token }}

- name: Parse Comment
uses: actions/github-script@v7
env:
comment: ${{ github.event.comment.body }}
with:
github-token: ${{ secrets.BOT }}
github-token: ${{ steps.auth.outputs.token }}
script: |-
const comment = process.env.comment.split(' ');
Expand All @@ -41,14 +48,14 @@ jobs:
url: ${{ env.url }}
out: ${{ env.out }}
with:
github-token: ${{ secrets.BOT }}
github-token: ${{ steps.auth.outputs.token }}
script: |-
core.exportVariable("comment", "`https://api.myanimelist.net/v2/" + process.env.url + "`\n\n" + "```json\n" + JSON.stringify(JSON.parse(process.env.out), null, 4) + "\n```");
- name: Print Response
if: env.comment
env:
GITHUB_TOKEN: ${{ secrets.BOT }}
GITHUB_TOKEN: ${{ steps.auth.outputs.token }}
comment: ${{ env.comment }}
number: ${{ github.event.issue.number }}
issue: ${{ github.event.issue && 'issue' || 'pr' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mal_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ jobs:
uses: actions/checkout@v4
with:
repository: Katsute/JUnit-Report
ref: f8c3faa29af146ae5945a2bfa2a8fc6b34c1c216
ref: 862f2f943b2274619fe0ed4ef9d8bbe965607a1f
path: ./.github/junit-report
token: ${{ secrets.BOT }}
token: ${{ secrets.JUNIT_PAT }}

- name: Generate Report
uses: ./.github/junit-report

0 comments on commit 497eda4

Please sign in to comment.