action-test/.forgejo/workflows/demo.yaml

18 lines
388 B
YAML
Raw Normal View History

on: [push]
jobs:
test-docker:
runs-on: docker
steps:
2023-11-16 15:56:16 +00:00
- run: echo Docker works!
test-dind:
runs-on: dind
steps:
2023-12-29 02:23:09 +00:00
- run: docker run hello-world
-
name: test
2023-12-29 02:23:37 +00:00
if: ${{ search(github.ref_name, 'a') }}
2023-12-29 02:23:09 +00:00
run: echo works
-
name: test inverse
2023-12-29 02:23:37 +00:00
if: ${{ ! search(github.ref_name, 'a') }}
2023-12-29 02:23:09 +00:00
run: echo works as well