bug: workdir_parent is not mounted in docker-based actions #406

Open
opened 2023-11-16 17:28:34 +00:00 by josedev-union · 0 comments

Context

In the workflow I have one task which uses a docker-based action(runs.using: docker in action.yml).
In the other actions, I can access repository files pulled by actions/checkout action in workdir_parent($HOME/.cache/act/). But I cannot find repository files in the docker-based actions because this kind of actions are run on a separate container.

Expectation

workdir_parent is mounted into docker-based action containers as Github action.

How to reproduce

This is the workflow jobs section.

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout project
        uses: actions/checkout@v3

      - name: Deploy caprover
        id: caprover
        uses: josedev-union/caprover-compose-action@report-debug
        with:
          server: localhost  # this param doesn't matter

This action is docker-based. https://github.com/josedev-union/caprover-compose-action/blob/main/action.yml#L28
And it outputs ls and pwd at first. It outputs . and .. only, not the repository files.

gitea version

Version: 1.20.5 (I think it doesn't matter)

runner version and type

Version: 0.2.6
Type: Both container and host runners

## Context In the workflow I have one task which uses a docker-based action(`runs.using: docker` in `action.yml`). In the other actions, I can access repository files pulled by `actions/checkout` action in `workdir_parent`(`$HOME/.cache/act/`). But I cannot find repository files in the docker-based actions because this kind of actions are run on a separate container. ## Expectation `workdir_parent` is mounted into docker-based action containers as Github action. ## How to reproduce This is the workflow `jobs` section. ```yml jobs: build: runs-on: ubuntu-latest steps: - name: Checkout project uses: actions/checkout@v3 - name: Deploy caprover id: caprover uses: josedev-union/caprover-compose-action@report-debug with: server: localhost # this param doesn't matter ``` This action is docker-based. https://github.com/josedev-union/caprover-compose-action/blob/main/action.yml#L28 And it outputs `ls` and `pwd` at first. It outputs `.` and `..` only, not the repository files. ## gitea version Version: 1.20.5 (I think it doesn't matter) ## runner version and type Version: 0.2.6 Type: Both container and host runners
lng2020 added the
kind
bug
label 2023-11-17 09:16:47 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/act_runner#406
No description provided.