lubitest/.gitea/workflows/demo.yml

23 lines
1,003 B
YAML
Raw Normal View History

2023-10-07 17:39:18 +00:00
on: [push]
jobs:
2023-10-11 19:03:43 +00:00
Explore-Gitea-Actions:
2024-02-16 19:48:06 +00:00
runs-on: docker
2023-10-07 17:39:18 +00:00
steps:
2023-10-11 19:05:51 +00:00
- run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo " This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo " The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
2024-02-16 20:33:47 +00:00
- run: env
2024-02-16 20:49:32 +00:00
- name: Manually checkout
env:
REPO: '${{ github.repository }}'
TOKEN: '${{ secrets.GITHUB_TOKEN }}'
run: |
git clone https://${TOKEN}@hannover.ccc.de/gitlab/${REPO}.git .
git fetch
git checkout ${{ github.head_ref }}
2023-10-11 19:05:51 +00:00
- run: echo " The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo " The workflow is now ready to test your code on the runner."
2023-10-11 18:57:14 +00:00
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
2023-10-11 19:05:51 +00:00
- run: echo " This job's status is ${{ job.status }}."