Xinyu Zhou
9ba9604256
fix(typo): Use uppercase N for default input prompt ( #9 )
...
Runner is already registered, overwrite local config? [y/N]
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/9
Reviewed-by: Jason Song <wolfogre@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Xinyu Zhou <i@sourcehut.net>
Co-committed-by: Xinyu Zhou <i@sourcehut.net>
2022-12-19 09:06:24 +08:00
ChristopherHX
27dd7dc3f4
fix: tail (not absolute) as entrypoint of job container ( #1506 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-12-15 17:31:59 +00:00
ChristopherHX
29756ec8f3
refactor: fix savestate in pre steps ( #1466 )
...
* refactor: fix savestate in pre steps
* fix pre steps collision
* fix tests
* remove
* enable tests
* Update pkg/runner/action.go
* Rename InterActionState to IntraActionState
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-12-15 17:08:31 +00:00
Markus Wolf
67aa596008
feat: allow to spawn and run a local reusable workflow ( #1423 )
...
* feat: allow to spawn and run a local reusable workflow
This change contains the ability to parse/plan/run a local
reusable workflow.
There are still numerous things missing:
- inputs
- secrets
- outputs
* feat: add workflow_call inputs
* test: improve inputs test
* feat: add input defaults
* feat: allow expressions in inputs
* feat: use context specific expression evaluator
* refactor: prepare for better re-usability
* feat: add secrets for reusable workflows
* test: use secrets during test run
* feat: handle reusable workflow outputs
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-12-15 16:45:22 +00:00
appleboy
8b8dfdb042
feat(workflow): support schedule event ( #4 )
...
fix https://gitea.com/gitea/act/issues/3
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
Co-authored-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
Reviewed-on: https://gitea.com/gitea/act/pulls/4
2022-12-10 09:14:14 +08:00
ChristopherHX
4f1ccbd47a
refactor: fix add-path / GITHUB_PATH commands ( #1472 )
...
* fix: add-path / GITHUB_PATH commands
* Disable old code
* fix: missing mock
* Update tests
* fix tests
* UpdateExtraPath skip on dryrun
* patch test
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-12-09 11:16:15 +00:00
ChristopherHX
84b6e863ef
feat: JobLoggerFactory ( #1496 )
...
Remove overriding io.Stdout in TestMaskValues to prevent deadlock in GitHub Actions
2022-12-09 10:25:32 +00:00
Markus Wolf
12c0f8eb8e
fix: handle env-vars case sensitive ( #1493 )
...
Closes #1488
2022-12-07 15:31:33 +00:00
ChristopherHX
68e74447c3
fix: step env is unavailable in with property expr ( #1458 )
...
* fix: step env is unavailable in with property expr
* don't run the test on windows
* fix: composite action add missing shell
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-12-06 16:46:20 +00:00
ChristopherHX
1441baa591
refactor: share UpdateFromEnv logic ( #1457 )
...
* refactor: share UpdateFromEnv logic
* Add test for GITHUB_OUTPUT
Co-authored-by: Ben Randall <veleek@gmail.com>
* Add GITHUB_STATE test
* Add test for the old broken parser
Co-authored-by: Ben Randall <veleek@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-12-06 16:19:27 +00:00
ChristopherHX
5b3714bfa0
feat: --container-options
( #1462 )
...
* feat: `--container-options`
This deprecates the following options
- `--privileged`
- `--container-cap-add`
- `--container-cap-drop`
- `--container-architecture`
- `--userns`
* Merge binds/mounts, add desc
* avoid linter error
* fix: apply options to step env / deprecate warning
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-12-06 15:58:47 +00:00
ChristopherHX
633ec30a1c
refactor: move autoremove into the jobexecutor ( #1463 )
...
* refactor: move autoremove into the jobexecutor
breaking: docker container are removed after job exit
* reduce complexity
* remove linter exception
* reduce cyclic complexity
* fix: always allow 1 min for stopping and removing the runner, even if we were cancelled
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-12-06 15:45:06 +00:00
Brice Dutheil
4444ced98a
Pass LANG=C.UTF-8
to environment ( #1476 )
...
* fix: pass LANG=C.UTF-8 to environment
Fixes : #1308
* fix: pass LANG=C.UTF-8 to environment in container only
Fixes : #1308
Signed-off-by: Brice Dutheil <brice.dutheil@gmail.com>
Signed-off-by: Brice Dutheil <brice.dutheil@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-12-06 10:36:39 +00:00
Jason Song
6d2200b3d6
Rename to actions ( #7 )
...
Co-authored-by: Jason Song <i@wolfogre.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/7
2022-12-06 16:37:38 +08:00
Jason Song
1ef04e7b8d
Merge tag 'nektos/v0.2.34'
2022-12-05 17:08:17 +08:00
Jason Song
0cbdbd36b6
Trim newline in log message ( #6 )
...
Co-authored-by: Jason Song <i@wolfogre.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/6
2022-12-02 16:07:23 +08:00
Jason Song
0f97dd873a
Use default labels with no interactive register ( #5 )
...
Co-authored-by: Jason Song <i@wolfogre.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/5
2022-12-02 12:01:50 +08:00
Jason Song
8996b9b0e4
Disable HTTP/2 ( #4 )
...
We use [connect-go](https://github.com/bufbuild/connect-go ) instead of [grpc-go](https://github.com/grpc/grpc-go ) because connect-go support HTTP/1.1, that means we can mount the gRPC api on the Gitea server without change the protocol.
So it doesn't make sense that make the runner support both HTTP/1.1 and HTTP/2, and [upgrade the protocol used on Gitea](
ae018b6b48/modules/graceful/server_http.go (L23)
) to support HTTP/2 and h2c. Although it works right now, I believe there'll be lots of problems when the Gitea server is behind a reverse proxy.
So let's KISS, we don't touch the http protocol of Gitea, and disable HTTP/2 for runner. And we would support HTTP/2 in the future if we really need it.
Co-authored-by: Jason Song <i@wolfogre.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/4
2022-11-29 10:35:59 +08:00
dependabot[bot]
1566965d67
build(deps): bump megalinter/megalinter from 6.14.0 to 6.15.0 ( #1475 )
...
Bumps [megalinter/megalinter](https://github.com/megalinter/megalinter ) from 6.14.0 to 6.15.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.14.0...v6.15.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>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-28 02:16:11 +00:00
Lim Chun Leng
fe754290e3
Fix shellcommand error on sh shell ( #1464 )
...
Co-authored-by: Lim Chun Leng <limchunleng@gmail.com>
2022-11-25 10:38:49 +00:00
Lunny Xiao
715d0e85ce
Merge pull request 'Fix duplicated log when register failed' ( #3 ) from lunny/act_runner:lunny/fix_register_failure_hint into main
...
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/3
2022-11-25 00:55:16 +08:00
Lunny Xiao
1ab84ac8e8
Fix duplicated log when register failed
2022-11-25 00:54:32 +08:00
Lunny Xiao
1d50f0f5fd
Merge pull request 'Update README about register' ( #2 ) from lunny/act_runner:lunny/update_readme into main
...
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/2
2022-11-25 00:42:46 +08:00
Lunny Xiao
d1017d752f
Update README about register
2022-11-25 00:40:00 +08:00
appleboy
474683c0e8
docs(readme): update some header. ( #1 )
...
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/1
2022-11-24 23:19:25 +08:00
Jason Song
03c4c4e116
docs: add quickstart to readme
2022-11-24 16:38:42 +08:00
Jason Song
b3e7d6a62d
fix: update container config
2022-11-24 15:38:22 +08:00
Jason Song
2354f5bb18
feat: use specified labels
2022-11-24 15:38:21 +08:00
Jason Song
5781e233c1
fix: limit workers
2022-11-24 15:38:20 +08:00
Jason Song
f05e08a767
chore: update grpc router path
2022-11-24 15:38:19 +08:00
fuxiaohei
86f66eaa45
feat(register): add labels to local runner file
2022-11-24 15:38:18 +08:00
Jason Song
64c9856ba7
fix: set more image
2022-11-24 15:38:17 +08:00
Jason Song
66ec50e427
chore: upgrade act
2022-11-24 15:38:16 +08:00
Jason Song
44988db9f8
chore: replace with code.gitea.io/bots-proto-go
2022-11-24 15:38:15 +08:00
Lunny Xiao
519726b46b
Update act
2022-11-24 15:38:14 +08:00
fuxiaohei
3f676a742b
feat(register): add label format validation
2022-11-24 15:38:13 +08:00
Bo-Yi.Wu
e9e42e850b
chore(runner): remove update runner status
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-24 15:38:12 +08:00
Jason Song
8f950ccec0
feat: auto remove containers
2022-11-24 15:38:11 +08:00
fuxiaohei
45de6199d1
feat: parse register arguments and do register when non-interactive mode
2022-11-24 15:38:10 +08:00
Jason Song
ab4e06f977
feat: support post step log
2022-11-24 15:38:09 +08:00
Bo-Yi Wu
cab56996b7
fix(poller): initial ready channel
2022-11-24 15:38:08 +08:00
Bo-Yi Wu
a13ed0c52e
feat(poller): support scheduler to fetch task and dispatch to worker
2022-11-24 15:38:07 +08:00
Lunny Xiao
5fc35faf17
Support bot site
2022-11-24 15:38:06 +08:00
fuxiaohei
bfcc6f56f3
feat(cli): make register interactive stages working
2022-11-24 15:38:05 +08:00
fuxiaohei
8f9d7506dc
feat(cli): set interactive stages in register command
2022-11-24 15:38:03 +08:00
fuxiaohei
561bfad7c5
feat(cli): add register command basic functions
2022-11-24 15:38:02 +08:00
Jason Song
88ae188699
fix: ignore stuck because of wrong token
2022-11-24 15:38:02 +08:00
Bo-Yi Wu
9830f34d36
fix(poller): graceful shutdown
2022-11-24 15:38:01 +08:00
Lunny Xiao
8cffac65d9
Use normal images which includes git command
2022-11-24 15:38:00 +08:00
Jason Song
2e1326b725
fix: set NoSkipCheckout
2022-11-24 15:37:58 +08:00