[Openvpn-devel] GHA: limit "Deploy Doxygen documentation" to main repo only

Message ID 20250811161323.1599-1-chipitsine@gmail.com
State New
Headers show
Series [Openvpn-devel] GHA: limit "Deploy Doxygen documentation" to main repo only | expand

Commit Message

Илья Шипицин Aug. 11, 2025, 4:13 p.m. UTC
that workflow was accidently triggered in fork repo, where
there's no github pages set

Signed-off-by: Ilia Shipitsin <chipitsine@gmail.com>
---
 .github/workflows/doxygen.yml | 1 +
 1 file changed, 1 insertion(+)

Comments

Frank Lichtenheld Aug. 12, 2025, 9:43 a.m. UTC | #1
On Mon, Aug 11, 2025 at 06:13:23PM +0200, Ilia Shipitsin wrote:
> that workflow was accidently triggered in fork repo, where
> there's no github pages set

Makes sense to me

Acked-by: Frank Lichtenheld <frank@lichtenheld.com>

Regards,
Gert Doering Aug. 12, 2025, 9:49 a.m. UTC | #2
For whatever reason, I never had problems with this (I think it was
explained to me how to disable this particular action) - but indeed, this
is a useful change, because it does not make sense outside the main
openvpn repo.

Your patch has been applied to the master branch.

commit c4f4f26d48babdf4f15a6cde837317c7216abbba
Author: Ilia Shipitsin
Date:   Mon Aug 11 18:13:23 2025 +0200

     GHA: limit 'Deploy Doxygen documentation' to main repo only

     Signed-off-by: Ilia Shipitsin <chipitsine@gmail.com>
     Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
     Message-Id: <20250811161323.1599-1-chipitsine@gmail.com>
     URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32598.html
     Signed-off-by: Gert Doering <gert@greenie.muc.de>


--
kind regards,

Gert Doering

Patch

diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml
index ffd1b826..751258a9 100644
--- a/.github/workflows/doxygen.yml
+++ b/.github/workflows/doxygen.yml
@@ -9,6 +9,7 @@  concurrency:
 jobs:
   build:
     runs-on: ubuntu-24.04
+    if: ${{ github.repository_owner == 'openvpn' || github.event_name == 'workflow_dispatch' }}
     steps:
       - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
         with: