Skip to content

Commit

Permalink
workflows: Fix if condition worflow logic, finally tested
Browse files Browse the repository at this point in the history
Workflow logic and YAML is not well documented, and leave
a lot of places where it is possible to make a mistake

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed May 7, 2024
1 parent 0b1650b commit aafce10
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@ on:
# types: [review_requested]
issue_comment:
types: [created, edited]
if: |
${{ github.event.issue.pull_request }} &&
${{ github.event.requested_team.name == 'hackers'}} &&
contains(github.event.comment.body, '/staging')

jobs:
deploy_staging:
if: ${{ github.event.issue.pull_request && github.event.requested_team.name == 'hackers' && contains(github.event.comment.body, '/staging') }}
runs-on: ubuntu-22.04
environment: stagingdeploy
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
Expand Down

0 comments on commit aafce10

Please sign in to comment.