forgejo-actions-test/.forgejo/workflows/test.yml
s3lph ab8a30ae6e
Some checks failed
/ env (push) Failing after 40s
feat: add userinfo step
2023-12-19 03:26:42 +01:00

20 lines
370 B
YAML

---
on:
push:
branches: [main]
jobs:
env:
runs-on: docker
container:
image: debian:bookworm
steps:
- run: env
- run: cat $GITHUB_EVENT_PATH
- name: Get token info
run: |
apt update; apt install -y curl jq
curl -vL --oauth2-bearer "${GITHUB_TOKEN} ${GITHUB_SERVER_URL}/login/oauth/userinfo | jq