Use ACTIONS_TOKEN secret to dispatch cinny-mobile builds.
All checks were successful
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-08-03 16:30:50 +10:00
parent 17706ae019
commit 32bf2cbed5

View File

@@ -12,18 +12,18 @@ jobs:
steps:
- name: Dispatch update-submodule on cinny-mobile
env:
# Prefer a PAT with Actions write on cinny-mobile (secret name: GITEA_TOKEN).
# Prefer a PAT with write:repository on cinny-mobile (secret: ACTIONS_TOKEN).
# Default GITHUB_TOKEN is usually scoped to this repo only.
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
ACTIONS_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
API_BASE: ${{ github.server_url }}/api/v1
CINNY_SHA: ${{ github.sha }}
run: |
set -euo pipefail
TOKEN="${GITEA_TOKEN:-${GITHUB_TOKEN:-}}"
TOKEN="${ACTIONS_TOKEN:-${GITHUB_TOKEN:-}}"
if [ -z "${TOKEN}" ]; then
echo "No GITEA_TOKEN/GITHUB_TOKEN available to dispatch cinny-mobile"
echo "No ACTIONS_TOKEN/GITHUB_TOKEN available to dispatch cinny-mobile"
exit 1
fi