From 71048ef4d1966c9e2e6b4b4d8f5388349914e0b2 Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Sat, 14 Oct 2023 07:28:10 +0200 Subject: [PATCH] [Ops] create-deploy-tag workflow: Improve speed --- .github/workflows/create-deploy-tag.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-deploy-tag.yml b/.github/workflows/create-deploy-tag.yml index 028eb9e5cc33c..6488aa0dc6417 100644 --- a/.github/workflows/create-deploy-tag.yml +++ b/.github/workflows/create-deploy-tag.yml @@ -12,6 +12,9 @@ on: inputs: commit: description: "Commit to promote (default: latest commit on main)" + depth: + description: "Fetch depth (0 = everything)" + default: "500" concurrency: group: ${{ github.workflow }} @@ -25,9 +28,10 @@ jobs: contents: write steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: ${{ github.event.inputs.depth }} + fetch-tags: true - name: Select commit to be tagged run: | commit="${{ github.event.inputs.commit || github.sha }}" @@ -100,10 +104,9 @@ jobs: [ "*Useful links:*\\n", "", - "", "", " (use Elastic Cloud Staging VPN)", - "", + "", "", "" ]