Skip to content

Commit

Permalink
Always run publish (when not from fork)
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Sep 21, 2023
1 parent 64222de commit eb7d103
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 27 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ jobs:
publish:
name: "Publish"
needs: [test-mac, test-lnx, test-win]
# we run the action from this branch whenever we can (when it runs in our repo's context)
if: >
always() &&
github.event.sender.login != 'dependabot[bot]' &&
( github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository )
uses: "./.github/workflows/publish.yml"
permissions:
checks: write
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ on:
jobs:
publish-dockerfile:
name: Publish Test Results (Dockerfile)
# we run the action from this branch whenever we can (when it runs in our repo's context)
if: >
always() &&
github.event.sender.login != 'dependabot[bot]' &&
( github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository )
runs-on: ubuntu-latest
permissions:
checks: write
Expand Down Expand Up @@ -50,11 +45,6 @@ jobs:

publish-docker-image:
name: Publish Test Results (Docker Image)
# we run the action from this branch whenever we can (when it runs in our repo's context)
if: >
always() &&
github.event.sender.login != 'dependabot[bot]' &&
( github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository )
runs-on: ubuntu-latest
permissions:
checks: write
Expand Down Expand Up @@ -217,11 +207,6 @@ jobs:

publish-composite:
name: Publish Test Results (${{ matrix.os-label }} python ${{ matrix.python }})
# we run the action from this branch whenever we can (when it runs in our repo's context)
if: >
always() &&
github.event.sender.login != 'dependabot[bot]' &&
( github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository )
runs-on: ${{ matrix.os }}
permissions:
checks: write
Expand Down Expand Up @@ -297,12 +282,6 @@ jobs:

publish-test-files:
name: Publish Test Files
# does not really depend on 'tests' but can be executed together with other publish tasks just for good taste
# we run the action from this branch whenever we can (when it runs in our repo's context)
if: >
always() &&
github.event.sender.login != 'dependabot[bot]' &&
( github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository )
runs-on: ubuntu-latest
permissions:
checks: write
Expand Down Expand Up @@ -349,12 +328,6 @@ jobs:

publish-test-file:
name: Publish Test File
# does not really depend on 'tests' but can be executed together with other publish tasks just for good taste
# we run the action from this branch whenever we can (when it runs in our repo's context)
if: >
always() &&
github.event.sender.login != 'dependabot[bot]' &&
( github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository )
runs-on: ubuntu-latest
permissions:
checks: write
Expand Down

0 comments on commit eb7d103

Please sign in to comment.