From 3103e136246e5ffc09d96833b2981c99d7bb4c58 Mon Sep 17 00:00:00 2001 From: Arkadiusz Nitka Date: Wed, 28 Aug 2024 09:28:14 +0200 Subject: [PATCH] Test of secret variable 12 --- .github/workflows/test.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 22e7374..57559e0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,11 +8,15 @@ on: jobs: check-secret: runs-on: ubuntu-latest - env: - super_secret: ${{ secrets.SWO_KEY_ID }} steps: - - if: ${{ env.super_secret != '' }} - run: echo 'This step will only run if the secret has a value set.' - - if: ${{ env.super_secret == '' }} - run: echo 'This step will only run if the secret does not have a value set.' + - name: "check is SWO_KEY_ID exists" + env: + super_secret: ${{ secrets.SWO_KEY_ID }} + if: ${{ env.super_secret == '' }} + run: 'echo "echo the secret \"SWO_KEY_ID\" has not been made; echo please go to \"settings \> secrets \> actions\" to create it"' + - name: "check is REPO_KEY_ID exists" + env: + super_secret_2: ${{ secrets.REPO_KEY_ID }} + if: ${{ env.super_secret_2 == '' }} + run: 'echo "echo the secret \"REPO_KEY_ID\" has not been made; echo please go to \"settings \> secrets \> actions\" to create it"'