From d43cf5f83ac12171e4db91d6205aca6e8b002160 Mon Sep 17 00:00:00 2001 From: Michael Yan Date: Wed, 22 May 2024 09:53:53 +0800 Subject: [PATCH] Grace: update github workflows --- .github/workflows/gradle.yml | 1 + .github/workflows/groovy-joint-workflow.yml | 1 + .github/workflows/release-notes.yml | 1 + .github/workflows/release.yml | 1 + .github/workflows/sdkman.yml | 1 + 5 files changed, 5 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index f6de58123c..b2cd2f55e7 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -9,6 +9,7 @@ on: workflow_dispatch: jobs: build: + if: ${{ github.repository == 'graceframework/grace-framework' }} permissions: contents: read # to fetch code (actions/checkout) runs-on: ubuntu-22.04 diff --git a/.github/workflows/groovy-joint-workflow.yml b/.github/workflows/groovy-joint-workflow.yml index 5646c460ae..0407a754d7 100644 --- a/.github/workflows/groovy-joint-workflow.yml +++ b/.github/workflows/groovy-joint-workflow.yml @@ -28,6 +28,7 @@ on: - '[2020-2024]+.[0-9]+.x' jobs: build: + if: ${{ github.repository == 'graceframework/grace-framework' }} strategy: fail-fast: true matrix: diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 116542764e..90766c41bd 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -9,6 +9,7 @@ on: workflow_dispatch: jobs: release_notes: + if: ${{ github.repository == 'graceframework/grace-framework' }} runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0037994fb..b747d5ef9b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,7 @@ permissions: jobs: create_draft_release: + if: ${{ github.repository == 'graceframework/grace-framework' }} runs-on: ubuntu-22.04 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/sdkman.yml b/.github/workflows/sdkman.yml index e6e703eaa3..802c9b7400 100644 --- a/.github/workflows/sdkman.yml +++ b/.github/workflows/sdkman.yml @@ -7,6 +7,7 @@ on: permissions: {} jobs: sdkman_release: + if: ${{ github.repository == 'graceframework/grace-framework' }} runs-on: ubuntu-22.04 strategy: matrix: