From 7bf724a91ee401aa742b451d36ca61ae9d9c901c Mon Sep 17 00:00:00 2001 From: kunal-cision Date: Wed, 22 Jan 2025 22:11:34 +0530 Subject: [PATCH] Updating actions/cache and actions/artifact to v4 --- .github/actions/smoke-tests/action.yaml | 2 +- .github/workflows/ci.yml | 16 ++++++++-------- .github/workflows/update-docker-images.yml | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/actions/smoke-tests/action.yaml b/.github/actions/smoke-tests/action.yaml index ffa110ebc9..0517803c8d 100644 --- a/.github/actions/smoke-tests/action.yaml +++ b/.github/actions/smoke-tests/action.yaml @@ -28,7 +28,7 @@ runs: using: composite steps: - name: Fetch Cached Artifacts - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ github.workspace }}/dist key: nginx-ingress-${{ github.run_id }}-${{ github.run_number }}-single diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6bbbbe053..11456b834a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,7 +92,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOPATH: ${{ needs.check.outputs.go_path }} - name: Store Artifacts in Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ github.workspace }}/dist key: nginx-ingress-${{ github.run_id }}-${{ github.run_number }}-single @@ -148,7 +148,7 @@ jobs: marker: ${{ matrix.images.marker != '' && matrix.images.marker || '""' }} k8s-version: ${{ matrix.k8s != '' && matrix.k8s || env.K8S_VERSION }} - name: Upload Test Results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ steps.smoke-tests.outputs.test-results-name }} path: ${{ github.workspace }}/tests/${{ steps.smoke-tests.outputs.test-results-name }}.html @@ -167,7 +167,7 @@ jobs: - name: Checkout Repository uses: actions/checkout@v2 - name: Fetch Cached Artifacts - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ github.workspace }}/dist key: nginx-ingress-${{ github.run_id }}-${{ github.run_number }}-single @@ -234,7 +234,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOPATH: ${{ needs.check.outputs.go_path }} - name: Store Artifacts in Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ github.workspace }}/dist key: nginx-ingress-${{ github.run_id }}-${{ github.run_number }}-multi @@ -264,7 +264,7 @@ jobs: with: fetch-depth: 0 - name: Fetch Cached Artifacts - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ github.workspace }}/dist key: nginx-ingress-${{ github.run_id }}-${{ github.run_number }}-multi @@ -339,7 +339,7 @@ jobs: with: sarif_file: 'trivy-results-${{ matrix.type }}.sarif' - name: Upload Scan Results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: 'trivy-results-${{ matrix.type }}.sarif' path: 'trivy-results-${{ matrix.type }}.sarif' @@ -373,7 +373,7 @@ jobs: - name: Package run: helm package --version ${{ steps.var.outputs.helm_version }} ${{ env.HELM_CHART_DIR }} - name: Upload Chart - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: helm-chart path: ${{ github.workspace }}/nginx-ingress-${{ steps.var.outputs.helm_version }}.tgz @@ -393,7 +393,7 @@ jobs: - name: Remove previous Chart run: rm -f ${{ github.workspace }}/${{ needs.package-helm.outputs.type }}/nginx-ingress-${{ needs.package-helm.outputs.version }}.tgz - name: Retrieve latest Helm Chart - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: helm-chart path: ${{ github.workspace }}/${{ needs.package-helm.outputs.type }} diff --git a/.github/workflows/update-docker-images.yml b/.github/workflows/update-docker-images.yml index 7b62a13d62..f141be39e2 100644 --- a/.github/workflows/update-docker-images.yml +++ b/.github/workflows/update-docker-images.yml @@ -106,7 +106,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOPATH: ${{ steps.go.outputs.go_path }} - name: Store Artifacts in Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ github.workspace }}/dist key: nginx-ingress-${{ github.run_id }}-${{ github.run_number }} @@ -143,7 +143,7 @@ jobs: ref: v${{ needs.variables.outputs.kic-tag }} if: ${{ matrix.needs-updating == 'true' }} - name: Fetch Cached Artifacts - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ github.workspace }}/dist key: nginx-ingress-${{ github.run_id }}-${{ github.run_number }} @@ -212,7 +212,7 @@ jobs: working-directory: ./tests if: ${{ matrix.needs-updating == 'true' }} - name: Upload Test Results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: test-results-${{ steps.k8s.outputs.cluster }} path: ${{ github.workspace }}/tests/tests-${{ steps.k8s.outputs.cluster }}.html