Jason Song
4d5a35ac65
Upgrade act ( #68 )
...
Related to https://gitea.com/gitea/act/pulls/27
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/68
2023-03-23 13:33:17 +08:00
Jason Song
929ea6df75
Support gitea context ( #27 )
...
And we will be able to use context like `${{ gitea.repository }}` in workflows yaml files, it's same as `${{ github.repository }}`
Reviewed-on: https://gitea.com/gitea/act/pulls/27
Reviewed-by: Zettat123 <zettat123@noreply.gitea.io >
2023-03-23 12:14:28 +08:00
Zettat123
8f81f40d62
Fix failed to create container if the runner works in root dir ( #67 )
...
Fix #56
This PR uses the `preset.Repository` as a part of the workdir and use `filepath.FromSlash` to convert the slash characters.
Co-authored-by: Jason Song <i@wolfogre.com >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/67
Reviewed-by: Jason Song <i@wolfogre.com >
Co-authored-by: Zettat123 <zettat123@gmail.com >
Co-committed-by: Zettat123 <zettat123@gmail.com >
2023-03-23 09:41:22 +08:00
Benjamin Loison
9f90cba993
Correct spaces in README.md and in Enter the runner name when running ./act_runner register ( #65 )
...
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/65
Reviewed-by: Jason Song <i@wolfogre.com >
Co-authored-by: Benjamin Loison <benjamin.loison@orange.fr >
Co-committed-by: Benjamin Loison <benjamin.loison@orange.fr >
2023-03-22 14:48:35 +08:00
Jason Song
48b05a0ca8
Upgrade act to support go actions ( #62 )
...
See:
- https://gitea.com/gitea/act/pulls/20
- https://gitea.com/gitea/act/pulls/22
- https://gitea.com/gitea/act/pulls/26
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/62
Reviewed-by: Zettat123 <zettat123@noreply.gitea.io >
2023-03-21 16:33:08 +08:00
Zettat123
f6a8a0e643
Add extra path env for running go actions ( #26 )
...
At present, the runner can't run go actions even if the go environment has been set by the `setup-go` action. The reason is that `setup-go` will add the go related paths to [`GITHUB_PATH`](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path ) but in #22 I forgot to apply them before running go actions. After adding the `ApplyExtraPath` function, the `setup-go` action runs properly.
Reviewed-on: https://gitea.com/gitea/act/pulls/26
Reviewed-by: Jason Song <i@wolfogre.com >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Zettat123 <zettat123@gmail.com >
Co-committed-by: Zettat123 <zettat123@gmail.com >
2023-03-21 15:31:30 +08:00
Joseph Mearman
9fab59954c
full path required for extension install ( #1670 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: ChristopherHX <christopher.homberger@web.de >
2023-03-19 21:02:11 -07:00
dependabot[bot]
8c28c9fd8f
build(deps): bump actions/setup-go from 3 to 4 ( #1689 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-20 03:31:00 +00:00
dependabot[bot]
2fa0a5f769
build(deps): bump github.com/imdario/mergo from 0.3.13 to 0.3.14 ( #1688 )
...
Bumps [github.com/imdario/mergo](https://github.com/imdario/mergo ) from 0.3.13 to 0.3.14.
- [Release notes](https://github.com/imdario/mergo/releases )
- [Commits](https://github.com/imdario/mergo/compare/v0.3.13...v0.3.14 )
---
updated-dependencies:
- dependency-name: github.com/imdario/mergo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-20 03:12:28 +00:00
dependabot[bot]
a6c95ef2a7
build(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2 ( #1650 )
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.8.1...v1.8.2 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: ChristopherHX <christopher.homberger@web.de >
2023-03-19 23:56:15 +00:00
dependabot[bot]
5a2112a7f8
build(deps): bump megalinter/megalinter from 6.20.0 to 6.20.1 ( #1679 )
...
Bumps [megalinter/megalinter](https://github.com/megalinter/megalinter ) from 6.20.0 to 6.20.1.
- [Release notes](https://github.com/megalinter/megalinter/releases )
- [Changelog](https://github.com/oxsecurity/megalinter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/megalinter/megalinter/compare/v6.20.0...v6.20.1 )
---
updated-dependencies:
- dependency-name: megalinter/megalinter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-19 23:37:58 +00:00
dependabot[bot]
fad986af5f
build(deps): bump fregante/setup-git-user from 1 to 2 ( #1664 )
...
Bumps [fregante/setup-git-user](https://github.com/fregante/setup-git-user ) from 1 to 2.
- [Release notes](https://github.com/fregante/setup-git-user/releases )
- [Commits](https://github.com/fregante/setup-git-user/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: fregante/setup-git-user
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-19 23:21:57 +00:00
Yann Pellegrini
35cac27f4c
Add example command for collecting artifacts ( #1671 )
...
Co-authored-by: Markus Wolf <KnisterPeter@users.noreply.github.com >
2023-03-19 22:47:47 +00:00
Shubh Bapna
636c8a34ae
feat: specify matrix on command line ( #1675 )
...
* added matrix option
* select the correct subset of matrix configuration after producing all the matrix configuration
* add tests
* update readme
* lint fix
* remove matrix from readme
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-19 17:25:55 +00:00
techknowlogick
9eb8b08a69
checksum and compress
2023-03-18 01:58:21 -04:00
a1012112796
556fd20aed
make sure special logs be sent to gitea's server ( #25 )
...
example:
https://gitea.com/a1012112796/test_action/actions/runs/7

TODO: special handle them on ui
Signed-off-by: a1012112796 <1012112796@qq.com >
Reviewed-on: https://gitea.com/gitea/act/pulls/25
Reviewed-by: Jason Song <i@wolfogre.com >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: a1012112796 <1012112796@qq.com >
Co-committed-by: a1012112796 <1012112796@qq.com >
2023-03-17 23:01:31 +08:00
Jason Song
4d868b7f3c
Update act to v0.243 ( #54 )
...
- Update act to v0.243.1
- Disable artifacts server when run daemon.
- Adjust cmd.
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/54
Reviewed-by: Zettat123 <zettat123@noreply.gitea.io >
2023-03-17 09:45:46 +08:00
Jason Song
a8298365fe
Fix incompatibility caused by tracking upstream add actions to test it ( #24 )
...
Reviewed-on: https://gitea.com/gitea/act/pulls/24
2023-03-16 15:00:11 +08:00
Jason Song
1dda0aec69
Merge tag 'nektos/v0.2.43'
...
Conflicts:
pkg/container/docker_run.go
pkg/runner/action.go
pkg/runner/logger.go
pkg/runner/run_context.go
pkg/runner/runner.go
pkg/runner/step_action_remote_test.go
2023-03-16 11:45:29 +08:00
Lunny Xiao
63a57edaa3
check go version when build ( #53 )
...
Fix #51
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/53
2023-03-16 11:37:08 +08:00
Jason Song
49e204166d
Update forking fules ( #23 )
...
As the title.
Reviewed-on: https://gitea.com/gitea/act/pulls/23
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
2023-03-16 10:46:41 +08:00
Lunny Xiao
5180cd56e1
Support cache on ci ( #47 )
...
Fix #46
Co-authored-by: Jason Song <i@wolfogre.com >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/47
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.io >
Reviewed-by: Jason Song <i@wolfogre.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com >
2023-03-15 12:28:18 +08:00
sillyguodong
370989b2d0
Print the kind of event that trigger the actions ( #48 )
...

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/48
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.io >
Co-authored-by: sillyguodong <gedong_1994@163.com >
Co-committed-by: sillyguodong <gedong_1994@163.com >
2023-03-15 09:44:13 +08:00
Shubham Agrawal
09de42f067
Support for docker steps in host environment ( #1674 )
...
* Support for docker steps in host environment
* removed workdir changes
2023-03-14 14:07:31 +00:00
Lunny Xiao
71f470d670
Fix make don't rebuild when go.mod changed ( #49 )
...
Fix #13
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/49
Reviewed-by: delvh <dev.lh@web.de >
2023-03-14 18:43:05 +08:00
Zettat123
a36b003f7a
Improve running with go ( #22 )
...
Close #21
I have tested this PR and run Go actions successfully on:
- Windows host
- Docker on Windows
- Linux host
- Docker on Linux
Before running Go actions, we need to make sure that Go has been installed on the host or the Docker image.
Reviewed-on: https://gitea.com/gitea/act/pulls/22
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Zettat123 <zettat123@gmail.com >
Co-committed-by: Zettat123 <zettat123@gmail.com >
2023-03-14 16:55:36 +08:00
Lunny Xiao
c0c363bf59
Update readme to add pre-built binary download links ( #45 )
...
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/45
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.io >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com >
2023-03-14 13:39:12 +08:00
sillyguodong
0d71463662
Inject version when building and report version to Gitea via log and header ( #43 )
...
close #42
1. Inject runner version when `make build`
After building, executing command line: `./act_runner -v` or `./act_runner --version`, the version of runner is printed.

2. In `Actions` UI:

3. Set request header in http client interceptor.
Co-authored-by: sillyguodong <gedong_1994@163.com >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/43
Reviewed-by: delvh <dev.lh@web.de >
Reviewed-by: Jason Song <i@wolfogre.com >
Co-authored-by: sillyguodong <sillyguodong@noreply.gitea.io >
Co-committed-by: sillyguodong <sillyguodong@noreply.gitea.io >
2023-03-13 18:57:35 +08:00
Markus Wolf
6744e68ee2
fix: correct ref and ref_name ( #1672 )
...
* fix: correct ref and ref_name
The ref in the GitHub context is always full qualified
(e.g. refs/heads/branch, refs/tags/v1).
The ref_name is the ref with the strippep prefix.
In case of pull_requests, this is the merge commit ref
(e.g. refs/pull/123/merge -> 123/merge).
* test: update test data
2023-03-09 20:03:13 +00:00
Zettat123
0671d16694
Fix missing ActionRunsUsingGo ( #20 )
...
- Allow `using: "go"` when unmarshalling YAML.
- Add `ActionRunsUsingGo` to returned errors.
Co-authored-by: Zettat123 <zettat123@gmail.com >
Reviewed-on: https://gitea.com/gitea/act/pulls/20
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Zettat123 <zettat123@noreply.gitea.io >
Co-committed-by: Zettat123 <zettat123@noreply.gitea.io >
2023-03-09 22:51:58 +08:00
Jason Song
ac5dd8feb8
fix: return err in walk ( #1667 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-08 15:13:11 +00:00
ChristopherHX
24440d9f15
test: Enshure ForcePull config doesn't break docker actions (1661)
2023-03-08 14:57:49 +00:00
ChristopherHX
f3c88b5091
fix: crash if the id tool fails to run in the container (1660)
2023-03-08 14:41:25 +00:00
HesterG
ebcf341de7
Fix wrong last step duration when job failed ( #41 )
...
This PR is to fix the wrong last step duration when job failed like shown in the screenshot.
The reason is because when job failed, `Fire` function did not pass in Time, and `r.state.StoppedAt` is by default set to `0001-01-01 08:05:43 +0805 LMT`, which is later on reported to gitea by `UpdateTask`, which calls `UpdateTaskByState` to update the `task.Stopped`, and `task.Stopped` is used in `FullSteps`, resulting in wrong calcaulation of last step duration.
Co-authored-by: nickname <test@123.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/41
Reviewed-by: Jason Song <i@wolfogre.com >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: HesterG <hesterg@noreply.gitea.io >
Co-committed-by: HesterG <hesterg@noreply.gitea.io >
2023-03-08 21:32:54 +08:00
a1012112796
881dbdb81b
make log level configable ( #19 )
...
relatd: https://gitea.com/gitea/act_runner/pulls/39
Reviewed-on: https://gitea.com/gitea/act/pulls/19
Reviewed-by: Jason Song <i@wolfogre.com >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: a1012112796 <1012112796@qq.com >
Co-committed-by: a1012112796 <1012112796@qq.com >
2023-03-08 14:46:39 +08:00
a1012112796
14334f76ed
Add exec subcommand for runner so that we can run the tasks locally( #39 )
...
Most codes are copied from https://gitea.com/gitea/act/src/branch/main/cmd
and do some small changes to make it run again
examples:
```SHELL
./act_runner exec -l
./act_runner exec -j lint
./act_runner exec -j lint -n
```
some example result:


Signed-off-by: a1012112796 <1012112796@qq.com >
fix #32
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/39
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: Jason Song <i@wolfogre.com >
Co-authored-by: a1012112796 <1012112796@qq.com >
Co-committed-by: a1012112796 <1012112796@qq.com >
2023-03-08 10:55:31 +08:00
dependabot[bot]
aeee2052de
build(deps): bump github.com/moby/buildkit from 0.11.3 to 0.11.4 ( #1669 )
...
Bumps [github.com/moby/buildkit](https://github.com/moby/buildkit ) from 0.11.3 to 0.11.4.
- [Release notes](https://github.com/moby/buildkit/releases )
- [Commits](https://github.com/moby/buildkit/compare/v0.11.3...v0.11.4 )
---
updated-dependencies:
- dependency-name: github.com/moby/buildkit
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-07 20:27:33 +00:00
Zettat123
f24e0721dc
Add runner name to log ( #37 )
...
User can get the name of the runner that executed the specified job.

Co-authored-by: Zettat123 <zettat123@gmail.com >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/37
Reviewed-by: Jason Song <i@wolfogre.com >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Zettat123 <zettat123@noreply.gitea.io >
Co-committed-by: Zettat123 <zettat123@noreply.gitea.io >
2023-03-06 18:42:07 +08:00
ChristopherHX
e36300ce28
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-06 13:24:32 +08:00
dependabot[bot]
7ee2138418
build(deps): bump megalinter/megalinter from 6.19.0 to 6.20.0 ( #1665 )
...
Bumps [megalinter/megalinter](https://github.com/megalinter/megalinter ) from 6.19.0 to 6.20.0.
- [Release notes](https://github.com/megalinter/megalinter/releases )
- [Changelog](https://github.com/oxsecurity/megalinter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/megalinter/megalinter/compare/v6.19.0...v6.20.0 )
---
updated-dependencies:
- dependency-name: megalinter/megalinter
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-06 03:30:59 +00:00
dependabot[bot]
8dbd151fa7
build(deps): bump golang.org/x/term from 0.5.0 to 0.6.0 ( #1666 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/term/releases )
- [Commits](https://github.com/golang/term/compare/v0.5.0...v0.6.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-06 03:12:42 +00:00
Tony Soloveyv
6601d8d8e8
Improve XDG Spec supporting ( #1656 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-03 14:39:02 +00:00
Jason Song
19abab6375
fix: safe file name ( #1651 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-03 08:38:33 +00:00
Alex Savchuk
973dd7f7ef
fix: compare properties of Invalid types ( #1645 )
...
* fix: compare properties of Invalid types
fix: compare properties of Invalid types #1643
* fix linter problem
* Fix review comment
2023-03-03 08:16:33 +00:00
techknowlogick
09ddbe166f
disable more arch
2023-03-01 13:00:18 +08:00
techknowlogick
da0713e629
disable arch that modernc does not support
2023-03-01 12:50:50 +08:00
techknowlogick
bbd055ac3b
run nightly on ubuntu runner
2023-03-01 12:32:00 +08:00
techknowlogick
462b2660de
disable arches that modernc/sqlite don't complie for
2023-03-01 12:31:27 +08:00
github-actions[bot]
44b510f48c
chore: bump VERSION to 0.2.43
2023-03-01 02:33:29 +00:00
techknowlogick
ebdbfeb54a
fix lint error ( #30 )
...
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/30
Reviewed-by: John Olheiser <john+gitea@jolheiser.com >
2023-03-01 06:40:20 +08:00