From fcae699dec1f162542e98bba560dfb999f33ddd8 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Mon, 29 Apr 2024 17:32:17 +0800 Subject: [PATCH] uprade actions/checkout Signed-off-by: Kevin Su --- .github/workflows/codespell.yml | 4 +++- .github/workflows/component_docker_build.yml | 4 +++- .github/workflows/create_release.yml | 10 +++++----- .github/workflows/end2end.yml | 7 +++++-- .github/workflows/flyteidl-buf-publish.yml | 4 +++- .github/workflows/flyteidl-release.yml | 8 ++++++-- .github/workflows/generate_flyte_manifest.yml | 2 +- .github/workflows/go_generate.yml | 4 +++- .github/workflows/integration.yml | 4 +++- .github/workflows/lint.yml | 4 +++- .github/workflows/publish.yml | 2 +- .github/workflows/sandbox.yml | 2 +- .github/workflows/single-binary.yml | 19 ++++++++++++++----- .github/workflows/tests.yml | 10 ++++++++-- .github/workflows/unit-tests.yml | 4 +++- .../boilerplate_automation.yml | 2 +- boilerplate/flyte/github_workflows/master.yml | 2 +- .../flyte/github_workflows/pull_request.yml | 4 +++- 18 files changed, 67 insertions(+), 29 deletions(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index c90557d62d..bac73144ad 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -21,7 +21,9 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: "0" - name: Codespell uses: codespell-project/actions-codespell@v2 with: diff --git a/.github/workflows/component_docker_build.yml b/.github/workflows/component_docker_build.yml index f6ef1ae9d6..2deaa67f0c 100644 --- a/.github/workflows/component_docker_build.yml +++ b/.github/workflows/component_docker_build.yml @@ -17,7 +17,9 @@ jobs: cache_key: ${{ steps.cache_key.outputs.cache_key }} steps: - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: "0" - id: load-docker-cache name: Load Docker Cache uses: actions/cache@v3 diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index ff191b346c..152c1cd042 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -11,7 +11,7 @@ jobs: name: Generate git tags runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: '0' - uses: actions/github-script@v6 @@ -60,7 +60,7 @@ jobs: - generate-tags steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: "0" @@ -95,7 +95,7 @@ jobs: ] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: "0" @@ -132,7 +132,7 @@ jobs: - build-docker-images steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: "0" @@ -165,7 +165,7 @@ jobs: - build-docker-images steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: "0" diff --git a/.github/workflows/end2end.yml b/.github/workflows/end2end.yml index aff4665fee..e1a686a489 100644 --- a/.github/workflows/end2end.yml +++ b/.github/workflows/end2end.yml @@ -24,7 +24,9 @@ jobs: FLYTESNACKS_VERSION="$(curl --silent https://api.github.com/repos/flyteorg/flytesnacks/releases/latest | jq -r .tag_name)" echo "FLYTESNACKS_VERSION=${FLYTESNACKS_VERSION}" >> ${GITHUB_ENV} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + fetch-depth: "0" - uses: unionai/flytectl-setup-action@v0.0.1 name: Setup flytectl - uses: actions/setup-python@v3 @@ -71,11 +73,12 @@ jobs: pip freeze - name: Checkout flytesnacks if: ${{ inputs.priorities == 'P0' }} - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: flyteorg/flytesnacks path: flytesnacks ref: ${{ env.FLYTESNACKS_VERSION }} + fetch-depth: "0" - name: Register P0 tests if: ${{ inputs.priorities == 'P0' }} run: | diff --git a/.github/workflows/flyteidl-buf-publish.yml b/.github/workflows/flyteidl-buf-publish.yml index 96bd0085a6..2c758ccd8a 100644 --- a/.github/workflows/flyteidl-buf-publish.yml +++ b/.github/workflows/flyteidl-buf-publish.yml @@ -12,7 +12,9 @@ jobs: buf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: "0" - uses: bufbuild/buf-setup-action@v1 - uses: bufbuild/buf-push-action@v1 with: diff --git a/.github/workflows/flyteidl-release.yml b/.github/workflows/flyteidl-release.yml index 7e34f54f29..3bad92468f 100644 --- a/.github/workflows/flyteidl-release.yml +++ b/.github/workflows/flyteidl-release.yml @@ -11,7 +11,9 @@ jobs: run: working-directory: flyteidl steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: "0" - name: Set up Python uses: actions/setup-python@v1 with: @@ -33,7 +35,9 @@ jobs: run: working-directory: flyteidl steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: "0" - uses: actions/setup-node@v1 with: node-version: "12.x" diff --git a/.github/workflows/generate_flyte_manifest.yml b/.github/workflows/generate_flyte_manifest.yml index b2cdb2f2d6..679f24bf63 100644 --- a/.github/workflows/generate_flyte_manifest.yml +++ b/.github/workflows/generate_flyte_manifest.yml @@ -12,7 +12,7 @@ jobs: name: Update Flyte components runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: "0" - uses: actions/setup-go@v2 diff --git a/.github/workflows/go_generate.yml b/.github/workflows/go_generate.yml index 66d3db9a62..e35c7181c4 100644 --- a/.github/workflows/go_generate.yml +++ b/.github/workflows/go_generate.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ${{ inputs.component }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: "0" - uses: arduino/setup-protoc@v1 with: repo-token: ${{ secrets.FLYTE_BOT_PAT }} diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index ba640f851c..3d635a8680 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -22,7 +22,9 @@ jobs: working-directory: ${{ inputs.component }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + fetch-depth: "0" - id: load-docker-cache name: Load Docker Cache uses: actions/cache@v3 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5b65cd0736..10fad58f4c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,7 +18,9 @@ jobs: working-directory: ${{ inputs.component }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + fetch-depth: "0" - name: Set up Go uses: actions/setup-go@v3 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3385733b68..3d527e3fcc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,7 +33,7 @@ jobs: name: Push to Github Registry runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@4 with: fetch-depth: '0' - name: Set up QEMU diff --git a/.github/workflows/sandbox.yml b/.github/workflows/sandbox.yml index 5b9a6056a4..83494a0f29 100644 --- a/.github/workflows/sandbox.yml +++ b/.github/workflows/sandbox.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: "0" - name: Set flyte version to release diff --git a/.github/workflows/single-binary.yml b/.github/workflows/single-binary.yml index 793a08e01b..76654b7b52 100644 --- a/.github/workflows/single-binary.yml +++ b/.github/workflows/single-binary.yml @@ -16,7 +16,9 @@ jobs: test-bootstrap: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: "0" - uses: actions/setup-go@v3 with: go-version: "1.21" @@ -38,7 +40,9 @@ jobs: needs: [test-bootstrap] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + fetch-depth: "0" - name: Setup Golang caches uses: actions/cache@v3 with: @@ -132,7 +136,9 @@ jobs: FLYTESNACKS_VERSION="$(curl --silent https://api.github.com/repos/flyteorg/flytesnacks/releases/latest | jq -r .tag_name)" echo "FLYTESNACKS_VERSION=${FLYTESNACKS_VERSION}" >> ${GITHUB_ENV} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + fetch-depth: "0" - uses: actions/download-artifact@v3 with: name: single-binary-image @@ -177,11 +183,12 @@ jobs: pip install flytekit flytekitplugins-deck-standard pip freeze - name: Checkout flytesnacks - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: flyteorg/flytesnacks path: flytesnacks ref: ${{ env.FLYTESNACKS_VERSION }} + fetch-depth: "0" - name: Register specific tests run: | flytekit_version=$(pip show flytekit | grep -i version | awk '{ print $2 }') @@ -205,7 +212,9 @@ jobs: needs: [build-and-push-single-binary-image] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + fetch-depth: "0" - uses: actions/download-artifact@v3 with: name: single-binary-image diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 73555907b6..bec69e2669 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Fetch the code - uses: actions/checkout@v2 + uses: actions/checkout@v4 + with: + fetch-depth: "0" - name: Set up Go uses: actions/setup-go@v2 with: @@ -31,11 +33,13 @@ jobs: uses: actions/checkout@v4 with: path: "${{ github.workspace }}/flyte" + fetch-depth: "0" - name: Fetch flytekit code uses: actions/checkout@v4 with: repository: flyteorg/flytekit path: "${{ github.workspace }}/flytekit" + fetch-depth: "0" - uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true @@ -74,7 +78,9 @@ jobs: generate_helm: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: "0" - uses: actions/setup-go@v2 with: go-version: "1.21" diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 475e010496..06c2b2e5cb 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -21,7 +21,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + fetch-depth: "0" - name: Set up Go uses: actions/setup-go@v3 with: diff --git a/boilerplate/flyte/github_workflows/boilerplate_automation.yml b/boilerplate/flyte/github_workflows/boilerplate_automation.yml index 9bda305d4f..4e586a2e7e 100644 --- a/boilerplate/flyte/github_workflows/boilerplate_automation.yml +++ b/boilerplate/flyte/github_workflows/boilerplate_automation.yml @@ -6,7 +6,7 @@ jobs: name: Update Boilerplate runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: "0" - name: Update Boilerplate diff --git a/boilerplate/flyte/github_workflows/master.yml b/boilerplate/flyte/github_workflows/master.yml index a8eab5af0e..8007b291d0 100644 --- a/boilerplate/flyte/github_workflows/master.yml +++ b/boilerplate/flyte/github_workflows/master.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v4 with: fetch-depth: '0' - name: Bump version and push tag diff --git a/boilerplate/flyte/github_workflows/pull_request.yml b/boilerplate/flyte/github_workflows/pull_request.yml index 932400bc4f..ece9404a5a 100644 --- a/boilerplate/flyte/github_workflows/pull_request.yml +++ b/boilerplate/flyte/github_workflows/pull_request.yml @@ -7,7 +7,9 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 + with: + fetch-depth: "0" - name: Push Docker Image to Github Registry uses: whoan/docker-build-with-cache-action@v5 with: