From 581d2c14fcb0ae3fcf2ad15ef7168f3ea74ccdfc Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Fri, 28 Mar 2025 11:29:10 +0800 Subject: [PATCH] chore(publish): update GitHub Actions workflow for conditional execution and permissions (#168) - Added permissions to allow writing to issues. - Introduced conditional execution for the publish-node job based on repository owner. - Updated checkout action to version 4. Co-authored-by: snomiao --- .github/workflows/publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 159f057..27acdb4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,10 +7,14 @@ on: paths: - 'pyproject.toml' +permissions: + issues: write + jobs: publish-node: name: Release and Publish Custom Node to registry runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'hayden-fr' }} steps: - name: Check out code uses: actions/checkout@v4