Skip to content

Commit

Permalink
[github] Run workflow jobs only in Samsung org (#13718)
Browse files Browse the repository at this point in the history
This will revuse to run all workflow jobs only in Samsung org.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Aug 21, 2024
1 parent 01c23cb commit 157f5ee
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
check-format:
name: Check format
runs-on: ubuntu-20.04
if: github.repository_owner == 'Samsung'

steps:
- name: Checkout
Expand Down Expand Up @@ -54,6 +55,7 @@ jobs:
check-copyright:
name: Check copyright
runs-on: ubuntu-20.04
if: github.repository_owner == 'Samsung'

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-pr-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
name: Check commit message
runs-on: ubuntu-20.04
# Skip on draft, check on draft -> ready
if: github.event.pull_request.draft == false
if: github.repository_owner == 'Samsung' && github.event.pull_request.draft == false

steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run-onert-android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ defaults:
jobs:
build:
runs-on: ubuntu-22.04
if: github.repository_owner == 'Samsung'
env:
TARGET_ARCH: aarch64
TARGET_OS: android
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/run-onert-micro-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Run onert-micro Unit tests

on:
push:
branches:
- master
- release/*
paths:
- 'onert-micro/**'
- '.github/workflows/run-onert-micro-unit-tests.yml'
pull_request:
branches:
- master
Expand All @@ -23,7 +30,7 @@ jobs:
name: Run onert-micro Unit tests
runs-on: ubuntu-20.04
# Skip on draft, check on draft -> ready
if: github.event.pull_request.draft == false
if: github.repository_owner == 'Samsung' && github.event.pull_request.draft == false

steps:
- name: Install Arm GNU Toolchain (arm-none-eabi-gcc)
Expand Down

0 comments on commit 157f5ee

Please sign in to comment.