From 056cfea8d76bf96bc198b6df2a4da94fc0195d48 Mon Sep 17 00:00:00 2001 From: Xun Jiang Date: Wed, 18 Dec 2024 18:40:55 +0800 Subject: [PATCH] Bump Python and action versions. Signed-off-by: Xun Jiang --- .github/workflows/auto_assign_prs.yml | 3 +- .github/workflows/auto_request_review.yml | 2 +- .github/workflows/pr.yaml | 12 ++++---- .github/workflows/push.yml | 36 ++++++++++++----------- 4 files changed, 28 insertions(+), 25 deletions(-) diff --git a/.github/workflows/auto_assign_prs.yml b/.github/workflows/auto_assign_prs.yml index c7a33da..a741cfd 100644 --- a/.github/workflows/auto_assign_prs.yml +++ b/.github/workflows/auto_assign_prs.yml @@ -13,7 +13,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Set the author of a PR as the assignee - uses: kentaro-m/auto-assign-action@v1.1.2 + uses: kentaro-m/auto-assign-action@v2.0.0 with: configuration-path: ".github/auto-assignees.yml" repo-token: "${{ secrets.GITHUB_TOKEN }}" + diff --git a/.github/workflows/auto_request_review.yml b/.github/workflows/auto_request_review.yml index 48622d7..83e7032 100644 --- a/.github/workflows/auto_request_review.yml +++ b/.github/workflows/auto_request_review.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Request a PR review based on files types/paths, and/or groups the author belongs to - uses: necojackarc/auto-request-review@v0.7.0 + uses: necojackarc/auto-request-review@v0.13.0 with: token: ${{ secrets.GITHUB_TOKEN }} config: .github/auto-assignees.yml diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 5da9287..fe34106 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -7,20 +7,20 @@ jobs: runs-on: ubuntu-latest steps: + - name: Check out the code + uses: actions/checkout@v4 + - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: - go-version: '1.22.8' + go-version-file: 'go.mod' id: go - - name: Check out the code - uses: actions/checkout@v2 - - name: Make CI run: make ci - name: Upload test coverage - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.out diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 88cdb17..fcd4750 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -15,36 +15,38 @@ jobs: runs-on: ubuntu-latest steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: - go-version: '1.22.8' - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v3 + go-version-file: 'go.mod' # Fix issue of setup-gcloud - run: | - sudo apt-get install python2.7 - export CLOUDSDK_PYTHON="/usr/bin/python2" + sudo apt-get install python3 + export CLOUDSDK_PYTHON="/usr/bin/python3" - - uses: google-github-actions/setup-gcloud@v0 + - id: 'auth' + uses: google-github-actions/auth@v2 with: - version: '285.0.0' - service_account_key: ${{ secrets.GCS_SA_KEY }} - export_default_credentials: true + credentials_json: '${{ secrets.GCS_SA_KEY }}' + + - name: 'set up GCloud SDK' + uses: google-github-actions/setup-gcloud@v2 + - run: gcloud info - + - name: Set up QEMU id: qemu - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 with: platforms: all - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 with: version: latest @@ -55,14 +57,14 @@ jobs: run: make test - name: Upload test coverage - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.out verbose: true # Use the JSON key in secret to login gcr.io - - uses: 'docker/login-action@v2' + - uses: 'docker/login-action@v3' with: registry: 'gcr.io' # or REGION.docker.pkg.dev username: '_json_key'