mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
use inputs instead
This commit is contained in:
@ -1,5 +1,14 @@
|
|||||||
name: 'Generate Test Report'
|
name: 'Generate Test Report'
|
||||||
description: 'Generate Test Report'
|
description: 'Generate Test Report'
|
||||||
|
inputs:
|
||||||
|
token:
|
||||||
|
description: 'GitHub token'
|
||||||
|
repo:
|
||||||
|
description: 'Repo name'
|
||||||
|
owner:
|
||||||
|
description: 'Repo owner'
|
||||||
|
issue_number:
|
||||||
|
description: 'Issue number'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
@ -28,9 +37,9 @@ runs:
|
|||||||
- name: Generate Report
|
- name: Generate Report
|
||||||
run: node dist/index.js "../../../test-report-*/*.json"
|
run: node dist/index.js "../../../test-report-*/*.json"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ inputs.token }}
|
||||||
REPO: ${{ github.repository.repo }}
|
REPO: ${{ inputs.repo }}
|
||||||
OWNER: ${{ github.repository.owner }}
|
OWNER: ${{ inputs.owner }}
|
||||||
ISSUE_NUMBER: ${{ github.event.number }}
|
ISSUE_NUMBER: ${{ inputs.issue_number }}
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ./core/test-reporter
|
working-directory: ./core/test-reporter
|
||||||
|
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -84,6 +84,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/workflows/actions/generate-test-report
|
- uses: ./.github/workflows/actions/generate-test-report
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
repo: ${{ github.repository.repo }}
|
||||||
|
owner: ${{ github.repository.owner }}
|
||||||
|
issue_number: ${{ github.event.number }}
|
||||||
|
|
||||||
build-vue:
|
build-vue:
|
||||||
needs: [build-core]
|
needs: [build-core]
|
||||||
|
Reference in New Issue
Block a user