Skip to content

Commit

Permalink
Update coopr_tests.yml. test trigger on coopr string
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0dss authored Jan 4, 2025
1 parent bf2c8b9 commit f7327f8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/coopr_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,22 @@ on:
branches:
- main
push:
branches-ignore:
- main
paths-ignore:
- '**'
tags-ignore:
branches:
- '**'
condition:
- "contains(github.event.head_commit.message, 'coopr')"

workflow_dispatch:

jobs:
run-tasks:
if: ${{ github.event_name == 'push' && contains(github.event.head_commit.message, 'coopr') || github.event_name == 'pull_request' }}
runs-on: self-hosted

steps:
- name: Checkout repository
uses: actions/checkout@v3

build-docker:
if: ${{ github.event_name == 'push' && contains(github.event.head_commit.message, 'coopr') || github.event_name == 'pull_request' }}
runs-on: self-hosted
needs: run-tasks

Expand All @@ -46,6 +43,7 @@ jobs:
docker-compose build --no-cache backend && docker-compose up --wait
run-make-coop-test:
if: ${{ github.event_name == 'push' && contains(github.event.head_commit.message, 'coopr') || github.event_name == 'pull_request' }}
runs-on: self-hosted
needs: build-docker

Expand Down

0 comments on commit f7327f8

Please sign in to comment.