Skip to content

Commit

Permalink
Test if relevant workflow is only triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
BbolroC committed Aug 2, 2024
1 parent 06d0c7e commit 339a75c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/hchoi_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: hchoi test
on:
push:
branches:
- 'main'
paths:
- '.github/workflows/hchoi_test.yml'
pull_request:
paths:
- '.github/workflows/hchoi_test.yml'
create:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
occlum_sgx_ci:
if: github.event_name != 'push' || github.event.pull_request.merged == false
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
submodules: true

- name: Echo hello world
run: echo "Hello, world!"

0 comments on commit 339a75c

Please sign in to comment.