diff --git a/.github/workflows/release-major.yml b/.github/workflows/release-major.yml index eeeff47..df32f31 100644 --- a/.github/workflows/release-major.yml +++ b/.github/workflows/release-major.yml @@ -17,6 +17,12 @@ jobs: name: Release-plz runs-on: ubuntu-latest steps: + - name: Check if actor is repository owner + if: ${{ github.actor != github.repository_owner }} + run: | + echo "You are not authorized to run this workflow." + exit 1 + - name: Checkout uses: actions/checkout@v4 with: diff --git a/.github/workflows/release-minor.yml b/.github/workflows/release-minor.yml index 64686d2..7a86698 100644 --- a/.github/workflows/release-minor.yml +++ b/.github/workflows/release-minor.yml @@ -17,6 +17,12 @@ jobs: name: Release-plz runs-on: ubuntu-latest steps: + - name: Check if actor is repository owner + if: ${{ github.actor != github.repository_owner }} + run: | + echo "You are not authorized to run this workflow." + exit 1 + - name: Checkout uses: actions/checkout@v4 with: diff --git a/.github/workflows/release-patch.yml b/.github/workflows/release-patch.yml index 3b36c45..ba026dc 100644 --- a/.github/workflows/release-patch.yml +++ b/.github/workflows/release-patch.yml @@ -17,6 +17,12 @@ jobs: name: Release-plz runs-on: ubuntu-latest steps: + - name: Check if actor is repository owner + if: ${{ github.actor != github.repository_owner }} + run: | + echo "You are not authorized to run this workflow." + exit 1 + - name: Checkout uses: actions/checkout@v4 with: