test/.forgejo/workflows/demo.yml

17 lines
450 B
YAML
Raw Normal View History

2023-10-06 21:31:38 +00:00
on: [push]
jobs:
ls:
runs-on: docker
2023-10-06 21:31:38 +00:00
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 }}
- run: ls
- run: env | sort