From 22b096be2518d5cd363a42deaf1f9e776c5e43c4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 16 Feb 2025 15:24:23 +0100 Subject: [PATCH] chore: Improve security of workflows --- .github/workflows/deploy-docs.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index c97934a51..fec46138a 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -43,12 +43,16 @@ jobs: - name: Build and push Mike if: ${{ github.event_name == 'push' }} run: | - mike deploy ${{ github.ref_name }} latest --push --update-aliases + mike deploy ${REF_NAME} latest --push --update-aliases + env: + REF_NAME: ${{ github.ref_name }} - name: Build and push Mike - Release if: ${{ github.event_name == 'release' }} run: | - mike deploy ${{ github.ref_name }} stable --push --update-aliases + mike deploy ${REF_NAME} stable --push --update-aliases + env: + REF_NAME: ${{ github.ref_name }} - name: Show mike versions run: |