Skip to content

Commit

Permalink
exclude main branch from tests on push condition, because they are ca…
Browse files Browse the repository at this point in the history
…lled explicitely as part of build workflow both on push and pull_request
  • Loading branch information
zostaw committed Dec 2, 2023
1 parent 1101c01 commit 2339b4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/push_dockerhub.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Dockerhub Release

on:
push:
branches:
- main
pull_request:
branches:
- main
Expand All @@ -9,7 +12,7 @@ jobs:
tests:
uses: ./.github/workflows/test_docker.yml
secrets: inherit
build_and_push:
push_dockerhub:
needs: [tests]
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test_docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Run Tests

on: [push, pull_request, workflow_call]
on:
push:
branches-ignore:
- main
workflow_call:

jobs:
test_page_initiation:
Expand Down

0 comments on commit 2339b4b

Please sign in to comment.