From d854035896b22b8e3e17f04947553abbb3342ca3 Mon Sep 17 00:00:00 2001 From: Jamie MacDonald Date: Fri, 26 Jul 2024 14:57:50 +0100 Subject: [PATCH] Clone action for use --- .github/workflows/security-patching.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/security-patching.yml b/.github/workflows/security-patching.yml index c822aad6f..54d7ec1bc 100644 --- a/.github/workflows/security-patching.yml +++ b/.github/workflows/security-patching.yml @@ -31,13 +31,29 @@ jobs: with: python-version: '3.9' + - name: Checkout action repository to get records + uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c + with: + repository: RasaHQ/get-release-records-from-datocms-gha + ref: main + token: ${{ secrets.CLONE_CMS_CHECKER }} + path: .github/get-release-records-from-datocms-gha + + - name: Run action to get records + uses: .github/get-release-records-from-datocms-gha + id: get_branches + with: + dato-cms-api-key: ${{ secrets.DATO_CMS_API_KEY }} + product-name: Rasa Pro + status: active + - name: Fetch all tags run: git fetch --tags - name: Run Python script id: tags run: | - python scripts/get_tags_from_branch.py '["3.7.x","3.8.x", "3.9.x"]' '3.3.x' + python scripts/get_tags_from_branch.py '${{ steps.get_branches.outputs.records }}' '3.7.x' - name: Show tags run: |