Skip to content

Commit

Permalink
Merge pull request #5141 from werf/ci_fix_docs_deploy_pr_workflow
Browse files Browse the repository at this point in the history
ci: fix docs:deploy:pr workflow
  • Loading branch information
alexey-igrychev committed Dec 9, 2022
2 parents 2050c85 + 9ba63e6 commit c394c01
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docs_deploy_pr.yml
Expand Up @@ -9,7 +9,8 @@ on:

jobs:
deploy-test:
if: github.event.label.name == 'trigger:\ docs:deploy:pr' || contains(github.event.pull_request.labels.*.name, 'trigger:\ docs:deploy:pr')
if: |
github.event.label.name == 'trigger: docs:deploy:pr' || contains(github.event.pull_request.labels.*.name, 'trigger: docs:deploy:pr')
uses: ./.github/workflows/_docs_deploy.yml
with:
env: test
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/test_main.yml
Expand Up @@ -21,7 +21,8 @@ on:

jobs:
unlabel:
if: github.event_name == 'pull_request' && github.event.label.name == 'trigger:\ test:main'
if: |
github.event_name == 'pull_request' && github.event.label.name == 'trigger: test:main'
runs-on: ubuntu-22.04
steps:
- uses: actions/github-script@v6
Expand All @@ -35,7 +36,8 @@ jobs:
})
integration_main:
if: github.event_name != 'pull_request' || github.event.label.name == 'trigger:\ test:main'
if: |
github.event_name != 'pull_request' || github.event.label.name == 'trigger: test:main'
uses: ./.github/workflows/_test_integration_regular.yml
with:
packages: integration/suites
Expand All @@ -44,33 +46,38 @@ jobs:
secrets: inherit

integration_git:
if: github.event_name != 'pull_request' || github.event.label.name == 'trigger:\ test:main'
if: |
github.event_name != 'pull_request' || github.event.label.name == 'trigger: test:main'
uses: ./.github/workflows/_test_integration_regular.yml
with:
packages: integration/suites/build/stapel_image/git
secrets: inherit

integration_ansible:
if: github.event_name != 'pull_request' || github.event.label.name == 'trigger:\ test:main'
if: |
github.event_name != 'pull_request' || github.event.label.name == 'trigger: test:main'
uses: ./.github/workflows/_test_integration_regular.yml
with:
packages: integration/suites/ansible
secrets: inherit

integration_per-k8s:
if: github.event_name != 'pull_request' || github.event.label.name == 'trigger:\ test:main'
if: |
github.event_name != 'pull_request' || github.event.label.name == 'trigger: test:main'
uses: ./.github/workflows/_test_integration_per-k8s-version.yml
secrets: inherit

e2e_simple_per-k8s:
if: github.event_name != 'pull_request' || github.event.label.name == 'trigger:\ test:main'
if: |
github.event_name != 'pull_request' || github.event.label.name == 'trigger: test:main'
uses: ./.github/workflows/_test_e2e_per-k8s-version.yml
with:
scope: simple
secrets: inherit

e2e_complex_per-k8s:
if: github.event_name != 'pull_request' || github.event.label.name == 'trigger:\ test:main'
if: |
github.event_name != 'pull_request' || github.event.label.name == 'trigger: test:main'
uses: ./.github/workflows/_test_e2e_per-k8s-version.yml
with:
scope: complex
Expand Down

0 comments on commit c394c01

Please sign in to comment.