parent
5be2683194
commit
fa8fa572c4
1 changed files with 5 additions and 2 deletions
26
.forgejo/workflows/demo.yml
Normal file
26
.forgejo/workflows/demo.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
runs-on: docker
|
||||
steps:
|
||||
- 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 }}."
|
||||
- run: env
|
||||
- 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 }}
|
||||
- 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."
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
ls ${{ gitea.workspace }}
|
||||
- run: echo " This job's status is ${{ job.status }}."
|
||||
- run: ls -l /
|
Loading…
Add table
Add a link
Reference in a new issue