Skip to content

Commit

Permalink
Run CI only on line/centraldogma
Browse files Browse the repository at this point in the history
Motivaiton:

I found that CI builds are run on the forked repositories.

https://github.com/ikhoon/centraldogma/actions

Modifications:

- Add `github.repository == 'line/centraldogma'` condition for CI builds

Result:

CI builds no longer run on the forked repositories.
  • Loading branch information
ikhoon committed Oct 21, 2024
1 parent b550f27 commit a4130f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/actions_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:

jobs:
build:
if: github.repository == 'line/centraldogma'
runs-on: ${{ matrix.os }}
timeout-minutes: 60
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
if: github.repository == 'line/centraldogma'
runs-on: ubuntu-latest
steps:
- name: Check out the repo
Expand Down

0 comments on commit a4130f0

Please sign in to comment.