test/.forgejo/workflows/demo.yml
lubiana 5c651cf198
All checks were successful
Build / BuildAndDeploy (push) Successful in 5s
.forgejo/workflows/demo.yml aktualisiert
2024-04-26 12:40:48 +00:00

29 lines
No EOL
738 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
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
pwd
ls /opt
echo 'hallo' >> /opt/hostedtoolcache/lol.txt
cat /opt/hostedtoolcache/lol.txt