0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-21 17:36:59 -05:00

include a sample of a workflow

This commit is contained in:
Earl Warren 2023-05-21 17:53:52 +02:00 committed by Caesar Schinas
parent f5d143da67
commit f973a54291
No known key found for this signature in database
GPG key ID: AE9108461BEA5ACF

View file

@ -101,3 +101,18 @@ And launched in debug mode with:
```shell
cd setup-forgejo ; ACTIONS_STEP_DEBUG=true ../runner/forgejo-runner daemon
```
## Try a sample workflow
From the Forgejo web interface, create a repository and add the following to `.forgejo/workflows/try.yaml`. It will launch the job and the result can be observed from the `actions` tab.
```yaml
on: [push]
jobs:
ls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
ls ${{ github.workspace }}
```