From 5fdd2202e276ca3fac32d81462e3e4a60760cb59 Mon Sep 17 00:00:00 2001 From: Akash Rathod <41251473+akashrathod28@users.noreply.github.com> Date: Fri, 21 Nov 2025 11:23:59 +0100 Subject: [PATCH] [ACS-10710] set user define version to update and run (#4895) * [ACS-10710] set user define version to update and run * [ACS-10710] reset old values * [ACS-10710]try to resolve recurity issue * [ACS-10710] added suggested changes --- .github/actions/deploy-local-acs/action.yml | 23 +++++++++++++++++++-- .github/workflows/pull-request.yml | 1 + 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/actions/deploy-local-acs/action.yml b/.github/actions/deploy-local-acs/action.yml index b35082590..d48cd4af3 100644 --- a/.github/actions/deploy-local-acs/action.yml +++ b/.github/actions/deploy-local-acs/action.yml @@ -14,6 +14,10 @@ inputs: quay_password: description: 'Quay password' required: true + acs_deployment_version: + description: 'ACS deployment version (defaults to latest)' + required: false + default: 'latest' runs: using: "composite" @@ -60,11 +64,26 @@ runs: helm repo add self https://alfresco.github.io/alfresco-helm-charts/ helm repo add elastic https://helm.elastic.co/ - - name: Checkout acs-deployment sources + - name: Get latest ACS deployment version + id: get-acs-version + shell: bash + env: + ACS_VERSION_INPUT: ${{ inputs.acs_deployment_version }} + run: | + if [ "$ACS_VERSION_INPUT" = "latest" ]; then + latest_tag=$(curl -s https://api.github.com/repos/Alfresco/acs-deployment/releases/latest | jq -r .tag_name) + echo "Using latest ACS deployment version: $latest_tag" + echo "version=$latest_tag" >> $GITHUB_OUTPUT + else + echo "Using specified ACS deployment version: $ACS_VERSION_INPUT" + echo "version=$ACS_VERSION_INPUT" >> $GITHUB_OUTPUT + fi + + - name: Checkout acs-deployment ${{ steps.get-acs-version.outputs.version }} uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: repository: Alfresco/acs-deployment - ref: v9.5.1 + ref: ${{ steps.get-acs-version.outputs.version }} path: acs-deployment - name: Helm install diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index c9cdd8095..2a9a697ab 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -198,6 +198,7 @@ jobs: docker_password: ${{ secrets.DOCKER_PASSWORD }} quay_username: ${{ secrets.QUAY_USERNAME }} quay_password: ${{ secrets.QUAY_PASSWORD }} + acs_deployment_version: 'latest' - name: Before e2e uses: ./.github/actions/before-e2e