You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/10/13 07:41:38 UTC

[incubator-opendal] 01/01: ci: Passing GITHUB_TOKEN to avoid rate limit

This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch use-github-token
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit ace10d0d01e456299113050eea97a732c92389a0
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Fri Oct 13 15:41:18 2023 +0800

    ci: Passing GITHUB_TOKEN to avoid rate limit
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
 .github/actions/setup/action.yaml | 4 ++++
 .github/workflows/core_test.yml   | 1 +
 2 files changed, 5 insertions(+)

diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml
index 2adc5d67a..1641ad8ee 100644
--- a/.github/actions/setup/action.yaml
+++ b/.github/actions/setup/action.yaml
@@ -26,6 +26,9 @@ inputs:
     description: "This setup needs nextest or not"
   need-protoc:
     description: "This setup needs protoc or not"
+  github-token:
+    description: "Github Token"
+    default: ""
 
 runs:
   using: "composite"
@@ -54,6 +57,7 @@ runs:
       uses: arduino/setup-protoc@v2
       with:
           version: "23.4"
+          repo-token: ${{ inputs.github-token }}
 
     - name: Cache nextest on linux
       id: cache-nextest
diff --git a/.github/workflows/core_test.yml b/.github/workflows/core_test.yml
index a92cadd9a..9cd213d4e 100644
--- a/.github/workflows/core_test.yml
+++ b/.github/workflows/core_test.yml
@@ -43,6 +43,7 @@ jobs:
           need-nextest: true
           need-protoc: true
           need-rocksdb: true
+          github-token: ${{ secrets.GITHUB_TOKEN }}
 
       # Required by hdfs
       - name: Setup java env