Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
ci: 删除 pull-request.yml 的环境变量
Browse files Browse the repository at this point in the history
  • Loading branch information
teacher-zhou committed Dec 6, 2022
1 parent 4db40af commit 129a894
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: "PR"

env:
CODACY_ACCOUNT_TOKEN: secrets.CODACY_ACCOUNT_TOKEN
GITHUB_TOKEN: secrets.GITHUB_TOKEN

on:
push:
branches: [ "master" ]
Expand All @@ -28,7 +24,7 @@ jobs:
- name: Codacy Coverage Reporter
uses: codacy/codacy-coverage-reporter-action@v1.3.0
with:
api-token: ${{ env.CODACY_ACCOUNT_TOKEN }}
api-token: ${{ secrets.CODACY_ACCOUNT_TOKEN }}
coverage-reports: 'coverage.cobertura.xml'
DotNet:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -59,15 +55,15 @@ jobs:
- name: Dotnet Test Reporter
uses: bibipkins/dotnet-test-reporter@v1.0.0-beta.4
with:
github-token: ${{ env.GITHUB_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
test-results: ./src/TDesign.Test/TestResults/
test-coverage: ./src/TDesign.Test/TestResults/**/*coverage*.xml
min-coverage: 80
comment-title: 'Unit Test Results'
- name: PR Comment
uses: github-actions-up-and-running/pr-comment@v1.0.1
with:
repo-token: ${{ env.GITHUB_TOKEN }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
message: 查看测试结果 ${{ steps.test-report.outputs.runHtmlUrl }}


0 comments on commit 129a894

Please sign in to comment.