Use ACTIONS_TOKEN secret to dispatch cinny-mobile builds.
All checks were successful
Trigger cinny-mobile / dispatch (push) Successful in 1s
All checks were successful
Trigger cinny-mobile / dispatch (push) Successful in 1s
This commit is contained in:
@@ -12,18 +12,18 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Dispatch update-submodule on cinny-mobile
|
- name: Dispatch update-submodule on cinny-mobile
|
||||||
env:
|
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.
|
# 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 }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
API_BASE: ${{ github.server_url }}/api/v1
|
API_BASE: ${{ github.server_url }}/api/v1
|
||||||
CINNY_SHA: ${{ github.sha }}
|
CINNY_SHA: ${{ github.sha }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
TOKEN="${GITEA_TOKEN:-${GITHUB_TOKEN:-}}"
|
TOKEN="${ACTIONS_TOKEN:-${GITHUB_TOKEN:-}}"
|
||||||
if [ -z "${TOKEN}" ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user