Skip to content

Commit 6e85036

Browse files
authored
Enhance release workflow with submodule support
Added workflow_call with GH_PAT secret for private repo access and updated checkout step to fetch submodules.
1 parent 768ff43 commit 6e85036

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
- '**/*.php'
99
- '.github/workflows/release.yml'
1010
workflow_dispatch:
11+
workflow_call:
12+
secrets:
13+
GH_PAT:
14+
description: 'Token de permissão para ler repositórios limitados/privados (como submódulos)'
15+
required: false
1116

1217
permissions:
1318
contents: write
@@ -21,6 +26,8 @@ jobs:
2126
uses: actions/checkout@v4
2227
with:
2328
fetch-depth: 0
29+
submodules: recursive # Obriga o Github Actions a baixar os submódulos da vez!
30+
token: ${{ secrets.GH_PAT || github.token }}
2431

2532
- name: Read plugin version
2633
id: version

0 commit comments

Comments
 (0)