Skip to content

Commit ddff6b5

Browse files
committed
🚧 Add debug step for token precence
1 parent 8ab604a commit ddff6b5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎.github/workflows/addon-update-packages.yaml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,20 @@ jobs:
106106
git config user.name 'Poeschl Home Assistant Addon-Botter'
107107
git config user.email '[email protected]'
108108
109+
- name: 🚧 Debug token presence
110+
shell: bash
111+
run: |
112+
if [ -n "${{ secrets.UPDATER_TOKEN }}" ]; then
113+
echo "updater_token is set and not empty"
114+
echo "First 4 characters of updater_token: ${${{ secrets.UPDATER_TOKEN }}:0:4}"
115+
else
116+
echo "updater_token is either not set or empty, will use github.token as fallback"
117+
fi
118+
109119
- name: 🚀 Run Updater
110120
uses: Poeschl/container-package-updater@v4
111121
with:
112-
# Use the UPDATER_TOKEN instead of GITHUB_TOKEN to tirgger PR workflows
122+
# Using GITHUB_TOKEN as fallback
113123
token: ${{ secrets.UPDATER_TOKEN }}
114124
containerFile: ${{ needs.information.outputs.addon-folder }}/Dockerfile
115125
osVersion: ${{ needs.information.outputs.os-version }}

0 commit comments

Comments
 (0)