From ed397d75995624ec1a3253ad8305169b5dcc8d02 Mon Sep 17 00:00:00 2001 From: Hyounggyu Choi Date: Fri, 2 Aug 2024 13:10:12 +0200 Subject: [PATCH] Test if relevant workflow is only triggered Signed-off-by: Hyounggyu Choi --- .github/workflows/hchoi_test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/hchoi_test.yml diff --git a/.github/workflows/hchoi_test.yml b/.github/workflows/hchoi_test.yml new file mode 100644 index 000000000..201eaad4b --- /dev/null +++ b/.github/workflows/hchoi_test.yml @@ -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: + hchoi_test: + 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!"