Hi, I have a weird question..
I have a gitea hosted server, and an act runner, and it seems to work fine… the problem is, that i cant find my checked out code after the action was ran.
but when i ssh into my runner, there is no folder /home/runner/gitea_runner/work/b1d7eeeac0505dd3/hostexecutor
so I have no idea where the runner checks out my code? does it delete the folder once it’s done?
it’s the same when the run is successful or failed.
How can i specify where the runner should checkout the code to? I’d like to have it simplified like check out to /home/runner/repos/XYZ
Coming from Github Actions, there the runner just clones the repo to _work folder… I’m trying to achieve the same thing.
I’ve set this in the runner config.yml file
host:
workdir_parent: /home/runner/gitea_runner/work
The action yaml file is:
name: Deploy Development
on:
push:
branches:
- 'master'
env:
DOCKER_COMPOSE_FILE: docker-compose.dev.yml
jobs:
deploy:
runs-on: self-hosted
name: Deploy Development
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 }}."
- name: Check out repository code
uses: actions/checkout@v4
with:
clean: false
- 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 }}
- name: show current directory
run: |
pwd
ls -la
find / -type f -name "this_is_very_unique_file.ts"
- run: echo "🍏 This job's status is ${{ job.status }}."
Thank you.