Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87c704d

Browse files
committed
Update GitHub Actions workflow to use AI Chatbot module configuration and add configurable token variable
1 parent d23ac52 commit 87c704d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/package-module.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ on:
1919
# =============================
2020
env:
2121
AUTHOR: "N6REJ"
22-
REPO: "N6REJ/mod_bears_julianclock"
23-
MODULE_NAME: "mod_bears_julianclock"
24-
MODULE_XML: "mod_bears_julianclock.xml"
22+
REPO: "N6REJ/mod_bears_aichatbot"
23+
MODULE_NAME: "mod_bears_aichatbot"
24+
MODULE_XML: "mod_bears_aichatbot.xml"
2525
COPYRIGHT_HOLDER: "BearLeeAble (N6REJ)"
2626
PHP_VERSION: "8.1"
27+
MODULE_TOKEN: "GH_PAT" # Set your token secret name here (default: GH_PAT)
2728

2829
jobs:
2930
update-version-and-release:
@@ -65,7 +66,7 @@ jobs:
6566
uses: actions/checkout@v4
6667
with:
6768
fetch-depth: 0
68-
token: ${{ secrets.GH_PAT }}
69+
token: ${{ secrets[env.MODULE_TOKEN] }}
6970
ref: ${{ (steps.context.outputs.is_pr_merge == 'true' && 'main') || (steps.context.outputs.is_pr_update == 'true' && github.event.pull_request.head.ref) || 'main' }}
7071
repository: ${{ (steps.context.outputs.is_pr_update == 'true' && github.event.pull_request.head.repo.full_name) || github.repository }}
7172
- name: Set up PHP
@@ -298,7 +299,7 @@ jobs:
298299
${{ steps.changelog.outputs.changelog }}
299300
[View full changelog](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md)
300301
env:
301-
GH_PAT: ${{ secrets.GH_PAT }}
302+
GH_PAT: ${{ secrets[env.MODULE_TOKEN] }}
302303
- name: Update Joomla update server XML
303304
if: steps.context.outputs.is_pr_merge == 'true' || steps.context.outputs.is_manual == 'true'
304305
run: |

0 commit comments

Comments
 (0)