From 220f9c810f3a92aee9dd5781716315ded5c313a6 Mon Sep 17 00:00:00 2001 From: Marcos Bento Date: Fri, 1 Nov 2024 13:27:22 +0000 Subject: [PATCH] Add experimental CI to test restricting workflow execution on forks --- .github/workflows/experimental-ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/experimental-ci.yml diff --git a/.github/workflows/experimental-ci.yml b/.github/workflows/experimental-ci.yml new file mode 100644 index 000000000..88b6438af --- /dev/null +++ b/.github/workflows/experimental-ci.yml @@ -0,0 +1,26 @@ +name: experimental-ci + +on: + # Trigger the workflow on push to master or develop, except tag creation + push: + branches: + - 'feature/**' + tags-ignore: + - '**' + +jobs: + github-ctx-dump: + runs-on: ubuntu-latest + steps: + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJSON(github) }} + run: echo "$GITHUB_CONTEXT" + + + experimental-ci: + if: ${{ github.repository_owner == 'ecmwf' }} + runs-on: ubuntu-latest + steps: + - name: Some build step + run: echo "$GITHUB_CONTEXT"