Go to file
ChristopherHX cbf360f543
fix docker executor on windows and local actions (#34)
If the Workdir field doesn't ends with the filepath seperator,
bad things happen

Fixes #33

Sample for host mode on windows, needs be adjusted for linux e.g. replace pwsh with bash
Also fixes
```yaml
on: push
jobs:
  _:
    runs-on: self-hosted
    steps:
    - uses: actions/checkout@v3
      with:
        path: subdir/action
    - uses: ./subdir/action
```

with an action.yml in the same repo
```yaml
runs:
  using: composite
  steps:
    - run: |
        echo "Hello World"
      shell: pwsh
```

Co-authored-by: Christopher Homberger <christopher.homberger@web.de>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/34
Reviewed-by: Jason Song <i@wolfogre.com>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: ChristopherHX <christopherhx@noreply.gitea.io>
Co-committed-by: ChristopherHX <christopherhx@noreply.gitea.io>
2023-03-08 14:58:04 +01:00
.forgejo/workflows run test from Actions 2023-03-01 00:10:02 +01:00
.gitea/workflows Enable action as CI to test/build/release (#26) 2023-02-24 17:52:04 +01:00
artifactcache fix lint error (#30) 2023-02-28 23:53:30 +01:00
client s|gitea.com/gitea/act_runner|codeberg.org/forgejo/runner| 2023-02-22 17:19:43 +01:00
cmd Merge pull request 'Further rebranding to Forgejo' (#2) from crystal/runner:rebrand into main 2023-02-28 23:09:48 +00:00
config s|gitea.com/gitea/act_runner|codeberg.org/forgejo/runner| 2023-02-22 17:19:43 +01:00
core Allow request an insecure gitea server (#18) 2023-02-15 16:51:14 +08:00
engine feat: move main task logic to runtime package 2022-11-24 15:37:06 +08:00
poller s|gitea.com/gitea/act_runner|codeberg.org/forgejo/runner| 2023-02-22 17:19:43 +01:00
register s|gitea.com/gitea/act_runner|codeberg.org/forgejo/runner| 2023-02-22 17:19:43 +01:00
runtime fix docker executor on windows and local actions (#34) 2023-03-08 14:58:04 +01:00
.gitignore Enable action as CI to test/build/release (#26) 2023-02-24 17:52:04 +01:00
.golangci.yml chore: add .golangci config 2022-11-24 15:36:28 +08:00
LICENSE Add license 2022-11-24 15:36:16 +08:00
Makefile Enable action as CI to test/build/release (#26) 2023-02-24 17:52:04 +01:00
README.md trigger the build 2023-03-01 00:32:50 +01:00
build.go Support cache (#25) 2023-02-28 23:48:37 +01:00
go.mod Support cache (#25) 2023-02-28 23:48:37 +01:00
go.sum Support cache (#25) 2023-02-28 23:48:37 +01:00
main.go s|gitea.com/gitea/act_runner|codeberg.org/forgejo/runner| 2023-02-22 17:19:43 +01:00

README.md

Forgejo Actions runner

Runs workflows found in .forgejo/workflows, using a format similar to GitHub actions but with a Free Software implementation.

It is compatible with Forgejo v1.19.0-0-rc0