Skip to content

Commit

Permalink
chore(ci): narrow publish trigger events
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Apr 12, 2023
1 parent 742a47e commit d4e29ac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ jobs:
run: docker build -f alpine.Dockerfile -t qmcgaw/godevcontainer .

publish:
if: |
github.repository == 'qdm12/godevcontainer' &&
(
github.event_name == 'push' ||
github.event_name == 'release' ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')
)
needs: [verify]
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ jobs:
run: docker build -f debian.Dockerfile -t qmcgaw/godevcontainer .

publish:
if: |
github.repository == 'qdm12/godevcontainer' &&
(
github.event_name == 'push' ||
github.event_name == 'release' ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')
)
needs: [verify]
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
Expand Down

0 comments on commit d4e29ac

Please sign in to comment.