Skip to content

Commit 78478bf

Browse files
committed
temp: get bot info
1 parent 00cf203 commit 78478bf

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/gcp-inspect.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ jobs:
2222
- name: Set up Cloud SDK
2323
uses: 'google-github-actions/setup-gcloud@v2'
2424

25-
- name: Inspect Cloud Run
25+
- name: Get Bot Info
2626
run: |
27-
echo "=== Cloud Run Services ==="
28-
gcloud run services describe dcubabot --region us-central1 --project dcubabot --format="json" || true
29-
echo "=== Cloud Scheduler Jobs ==="
30-
gcloud scheduler jobs list --location us-central1 --project dcubabot || true
27+
TOKEN=$(gcloud secrets versions access latest --secret="GCP_DCUBABOT_SECRET_TG_BOT_TOKEN" --project="dcubabot")
28+
curl -s "https://api.telegram.org/bot${TOKEN}/getMe" > bot_info.json
29+
cat bot_info.json

0 commit comments

Comments
 (0)