action-test/.forgejo/workflows/demo.yaml
Neshura f56bd0badc
All checks were successful
/ test-docker (push) Successful in 1s
/ test-dind (push) Successful in 2s
Update .forgejo/workflows/demo.yaml
2023-12-29 02:24:56 +00:00

19 lines
419 B
YAML

on: [push]
jobs:
test-docker:
runs-on: docker
steps:
- run: echo Docker works!
test-dind:
runs-on: dind
steps:
- run: docker run hello-world
- run: echo ${{ github.ref_name }}
-
name: test
if: contains(github.ref_name, 'a')
run: echo works
-
name: test inverse
if: ! contains(github.ref_name, 'a')
run: echo works as well