diff --git a/.github/workflows/utils.yaml b/.github/workflows/utils.yaml index 9e7fa42..89e8598 100644 --- a/.github/workflows/utils.yaml +++ b/.github/workflows/utils.yaml @@ -61,7 +61,7 @@ jobs: while true; do users=$(curl -L \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.TOKEN_ACTION }}" \ + -H "Authorization: Bearer ${{ secrets.SYNC_APP_KEY || github.token }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ "https://api.github.com/orgs/matrixorigin/members?page=$PAGE&per_page=$PER_PAGE"); if [ $(echo $users | jq ".[].login" | grep -c "${{ github.event.pull_request.user.login }}" ) -eq 1 ]; then @@ -82,7 +82,7 @@ jobs: run: | labels=$(curl -L \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.TOKEN_ACTION }}" \ + -H "Authorization: Bearer ${{ secrets.SYNC_APP_KEY || github.token }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ '${{ github.event.pull_request.url}}' | jq ".labels"); if [ $(echo $labels | jq ".[].name" | grep -c "safe-to-test" ) -ge 1 ]; then @@ -410,7 +410,7 @@ jobs: - name: size-label uses: "matrixorigin/CI/actions/label-size-action@main" with: - size_token: ${{ secrets.TOKEN_ACTION }} + size_token: ${{ secrets.SYNC_APP_KEY || github.token }} ignore: ".md,.pb.go" sizes: > { @@ -441,7 +441,7 @@ jobs: uses: actions/checkout@v6 with: repository: matrixorigin/mo-load-data - token: ${{secrets.TOKEN_ACTION}} + token: ${{ secrets.SYNC_APP_KEY || github.token }} path: ./mo-load-data ref: main - name: Clone mo-load Repo @@ -449,7 +449,7 @@ jobs: uses: actions/checkout@v6 with: repository: matrixorigin/mo-load - token: ${{secrets.TOKEN_ACTION}} + token: ${{ secrets.SYNC_APP_KEY || github.token }} path: ./mo-load ref: "1.0" - name: Clone mo-tpcc Repo @@ -457,7 +457,7 @@ jobs: uses: actions/checkout@v6 with: repository: matrixorigin/mo-tpcc - token: ${{secrets.TOKEN_ACTION}} + token: ${{ secrets.SYNC_APP_KEY || github.token }} path: ./mo-tpcc ref: main - name: Clone mo-ssb Repo @@ -465,7 +465,7 @@ jobs: uses: actions/checkout@v6 with: repository: matrixorigin/mo-ssb - token: ${{secrets.TOKEN_ACTION}} + token: ${{ secrets.SYNC_APP_KEY || github.token }} path: ./mo-ssb ref: main - name: Clone mo-tpch Repo @@ -473,7 +473,7 @@ jobs: uses: actions/checkout@v6 with: repository: matrixorigin/mo-tpch - token: ${{secrets.TOKEN_ACTION}} + token: ${{ secrets.SYNC_APP_KEY || github.token }} path: ./mo-tpch ref: main