From 391c5c15e8f2d6c9ed7a97d892b3257d5e333098 Mon Sep 17 00:00:00 2001 From: hanzlamateen Date: Sun, 28 Jul 2024 17:34:06 +0500 Subject: [PATCH] Moved Check Deploy to separate job --- .github/workflows/deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 84f5219..147fd25 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -35,18 +35,21 @@ jobs: name: Check Deploy needs: build runs-on: ubuntu-latest - + outputs: + ok: ${{ steps.check-secrets-run.outputs.ok }} steps: - name: Check for Secret availability + id: check-secrets-run run: | if [ ${{ secrets.GITHUB_TOKEN }} != '' ]; then - echo "ok=enabled" >> $GITHUB_OUTPUT + echo "available=enabled" >> $GITHUB_OUTPUT fi deploy: name: Deploy needs: check-deploy runs-on: ubuntu-latest + if: ${{ steps.check-deploy.outputs.available == 'enabled' }} steps: - name: Download artifact