Skip to content

Commit

Permalink
add needs
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorF-BDBQ authored Jul 8, 2024
1 parent 7399d62 commit 1b50bd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
jobs:
prepare:
runs-on: ubuntu-latest
if: github.ref_name == 'main' || (github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'DEPLOY')
steps:
- uses: actions/checkout@v2
- name: Prepare
Expand All @@ -22,7 +23,7 @@ jobs:
echo '${{ toJSON(github) }}'
build:
runs-on: ubuntu-latest
if: github.ref_name == 'main' || (github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'DEPLOY')
needs: [prepare]
steps:
- uses: actions/checkout@v2
- name: Build
Expand All @@ -31,6 +32,7 @@ jobs:
echo '${{ toJSON(github) }}'
deploy:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
- name: Deploy
Expand Down

0 comments on commit 1b50bd1

Please sign in to comment.