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

@ -171,5 +171,9 @@ function test_actions() {
if dpkg --compare-versions $version ge 9.0; then
run actions_verify_example schedule-noncancel
fi
if dpkg --compare-versions $version ge 10.0 && dpkg --compare-versions $runner_version gt 5.0.4; then
run actions_verify_example branding-v10
fi
done
}

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 }}"