feat: test FORGEJO_TOKEN

This commit is contained in:
xtex 2024-12-13 21:19:44 +08:00
parent 3450de64aa
commit af5923c7d4
No known key found for this signature in database
GPG key ID: B918086ED8045B91
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,14 @@
on: [push]
jobs:
test:
runs-on: docker
container:
image: code.forgejo.org/oci/node:20-bookworm
steps:
- name: FORGEJO_TOKEN
run: |
set -x
test "$FORGEJO_TOKEN"
test "$FORGEJO_TOKEN" = "${{ env.FORGEJO_TOKEN }}"
test "$FORGEJO_TOKEN" = "${{ github.TOKEN }}"