test/.forgejo/workflows/demo.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 27: mapping key "run" already defined at line 26 line 28: mapping key "run" already defined at line 26 line 28: mapping key "run" already defined at line 27

28 lines
No EOL
725 B
YAML

name: Build
run-name: ${{ gitea.actor }} Builder
on:
push:
branches:
- main
jobs:
BuildAndDeploy:
runs-on: ubuntu-latest
container:
image: git.php.fail/lubiana/container/hugogit
env:
RUNNER_TOOL_CACHE: /toolcache
steps:
- name: Manually checkout
env:
REPO: '${{ github.repository }}'
TOKEN: '${{ secrets.GITHUB_TOKEN }}'
GIT_SERVER: 'git.php.fail'
run: |
git clone --branch $GITHUB_REF_NAME https://${TOKEN}@${GIT_SERVER}/${REPO}.git .
git fetch
git checkout ${{ github.head_ref }}
- name: list
run: ls
run: echo 'hallo' >> /toolcache/lol.txt
run: cat /toolcache/lol.txt