mirror of
https://github.com/Hopiu/lychee.git
synced 2026-05-01 10:24:47 +00:00
Don't trigger Docker builds on tags if trigger is not coming through release workflow
This commit is contained in:
parent
b37d255d45
commit
8a22b9f4fe
1 changed files with 6 additions and 0 deletions
6
.github/workflows/docker.yml
vendored
6
.github/workflows/docker.yml
vendored
|
|
@ -26,6 +26,12 @@ jobs:
|
|||
github.actor != 'dependabot[bot]' &&
|
||||
( github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login )
|
||||
steps:
|
||||
# If we got triggered with a new tag and it was not through a
|
||||
# workflow_run, then stop here and let the release workflow handle it.
|
||||
- name: Exit early if tag and not from release workflow
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
||||
run: exit 0
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue