use vars to control the jobs

This commit is contained in:
Earl Warren 2023-09-29 20:19:00 +02:00
parent 06709db2c5
commit fdd4ccf4c3
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -8,16 +8,14 @@ jobs:
info: info:
- version: "1.21.0-1-rc0" - version: "1.21.0-1-rc0"
image: codeberg.org/forgejo-experimental/forgejo image: codeberg.org/forgejo-experimental/forgejo
tests: "cron" tests: "${{ vars.V121_TESTS || 'echo artifacts pull-request service container expression local-action docker-action if if-fail cron' }}"
- version: "1.21.0-1-rc0"
image: codeberg.org/forgejo-experimental/forgejo
tests: "echo artifacts pull-request service container expression local-action docker-action if if-fail"
- version: "1.20" - version: "1.20"
image: codeberg.org/forgejo/forgejo image: codeberg.org/forgejo/forgejo
tests: "echo service container expression local-action docker-action if if-fail" tests: "${{ vars.V120_TESTS || 'echo service container expression local-action docker-action if if-fail' }}"
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- run: | - if: matrix.info.tests != 'none'
run: |
set -x set -x
LXC_IP_PREFIX=10.0.10 ./forgejo-dependencies.sh LXC_IP_PREFIX=10.0.10 ./forgejo-dependencies.sh
export PATH=$(pwd):$PATH export PATH=$(pwd):$PATH