mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-10-23 03:37:01 +09:00
Simplify bot token handling in CS fix workflow
This commit is contained in:
1 parent
f0c2ea5622
commit
e55b30621f
1 file changed
+2
-8
@@ -30,13 +30,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
|
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
|
||||||
# FOSSBilling Bot token stored in 1Password.
|
# FOSSBilling Bot token stored in 1Password.
|
||||||
BOT_TOKEN: op://mkqkefntgcmjlgyxzeaekzuuvq/fossbilling-bot/token
|
FOSSBILLING_BOT_TOKEN: op://mkqkefntgcmjlgyxzeaekzuuvq/fossbilling-bot/token
|
||||||
|
|
||||||
- name: 'Consolidate Bot Token (fallback to legacy secret until vault provisioning is complete)'
|
|
||||||
run: |
|
|
||||||
if [ -z "${BOT_TOKEN}" ]; then
|
|
||||||
echo "BOT_TOKEN=${{ secrets.BOT_TOKEN }}" >> "$GITHUB_ENV"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
with:
|
with:
|
||||||
@@ -89,7 +83,7 @@ jobs:
|
|||||||
branch: chore/cs-fix
|
branch: chore/cs-fix
|
||||||
body: Automated run of PHP-CS-Fixer and Rector to ensure code styling, quality, and modern practices.
|
body: Automated run of PHP-CS-Fixer and Rector to ensure code styling, quality, and modern practices.
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
token: ${{ env.BOT_TOKEN }}
|
token: ${{ env.FOSSBILLING_BOT_TOKEN }}
|
||||||
committer: FOSSBilling Bot <fossbilling-bot>
|
committer: FOSSBilling Bot <fossbilling-bot>
|
||||||
author: FOSSBilling Bot <fossbilling-bot>
|
author: FOSSBilling Bot <fossbilling-bot>
|
||||||
labels: skip-changelog
|
labels: skip-changelog
|
||||||
|
|||||||
Reference in new issue
Block a user