From 8ce5f0a03f381ece66b6764022f83134f2606210 Mon Sep 17 00:00:00 2001 From: unadlib Date: Tue, 1 Oct 2024 23:11:51 +0800 Subject: [PATCH] ci(github): update github action config --- .github/workflows/pull-request.yml | 3 +++ .github/workflows/tests.yml | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index f65d47e..cfc6fe5 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,6 +1,9 @@ on: ["pull_request"] name: Test Coverage +permissions: + contents: read + pull-requests: write jobs: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0755c02..81bd454 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,7 +1,9 @@ -on: ["push"] - -name: Push Test Coveralls +on: + push: + branches: + - main +name: Test with Coveralls jobs: build: