Skip to content

Commit

Permalink
Moved Check Deploy to separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzlamateen committed Jul 28, 2024
1 parent bbb209b commit 391c5c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 391c5c1

Please sign in to comment.