1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00
Commit graph

919 commits

Author SHA1 Message Date
Earl Warren
8826f7c6e9 fix: services do not need WorkingDir (#156)
Closes forgejo/runner#304

Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/156
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-07-02 09:29:10 +00:00
Earl Warren
fe19a1d47b feat: rename notifications control to enable-email-notifications (#152)
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/152
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-06-17 08:55:44 +00:00
Earl Warren
01032808ea feat: add notifications control to the workflow (#151)
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/151
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-06-14 15:42:32 +00:00
Slatian
5cf8d53087 Feature: Added an action type for the action.yaml that uses sh (#141)
Currently the only way to get pre and post actions is to go through the nodejs mechanism, which is quite wasteful when all one wants to do is run a couple of shell commands, I'm trying to get around this with this patch.

It works similar to the node* actions in that it supports `pre`, `main` and `post`.

It is different in that these strings are passed to the system shell using `sh -c` and execute similar to the composite run action with the shell set to `sh`.

Example action to make use of this patch: https://codeberg.org/slatian/test-action/src/branch/main/action.yaml

Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/141
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Slatian <baschdel@disroot.org>
Co-committed-by: Slatian <baschdel@disroot.org>
2025-06-14 15:31:32 +00:00
Renovate Bot
ab012fec87 Update module github.com/docker/cli to v28 (#147)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/docker/cli](https://github.com/docker/cli) | require | major | `v25.0.7+incompatible` -> `v28.2.2+incompatible` |

---

### Release Notes

<details>
<summary>docker/cli (github.com/docker/cli)</summary>

### [`v28.2.2+incompatible`](https://github.com/docker/cli/compare/v28.2.1...v28.2.2)

[Compare Source](https://github.com/docker/cli/compare/v28.2.1...v28.2.2)

### [`v28.2.1+incompatible`](https://github.com/docker/cli/compare/v28.2.0...v28.2.1)

[Compare Source](https://github.com/docker/cli/compare/v28.2.0...v28.2.1)

### [`v28.2.0+incompatible`](https://github.com/docker/cli/compare/v28.1.1...v28.2.0)

[Compare Source](https://github.com/docker/cli/compare/v28.1.1...v28.2.0)

### [`v28.1.1+incompatible`](https://github.com/docker/cli/compare/v28.1.0...v28.1.1)

[Compare Source](https://github.com/docker/cli/compare/v28.1.0...v28.1.1)

### [`v28.1.0+incompatible`](https://github.com/docker/cli/compare/v28.0.4...v28.1.0)

[Compare Source](https://github.com/docker/cli/compare/v28.0.4...v28.1.0)

### [`v28.0.4+incompatible`](https://github.com/docker/cli/compare/v28.0.3...v28.0.4)

[Compare Source](https://github.com/docker/cli/compare/v28.0.3...v28.0.4)

### [`v28.0.3+incompatible`](https://github.com/docker/cli/compare/v28.0.2...v28.0.3)

[Compare Source](https://github.com/docker/cli/compare/v28.0.2...v28.0.3)

### [`v28.0.2+incompatible`](https://github.com/docker/cli/compare/v28.0.1...v28.0.2)

[Compare Source](https://github.com/docker/cli/compare/v28.0.1...v28.0.2)

### [`v28.0.1+incompatible`](https://github.com/docker/cli/compare/v28.0.0...v28.0.1)

[Compare Source](https://github.com/docker/cli/compare/v28.0.0...v28.0.1)

### [`v28.0.0+incompatible`](https://github.com/docker/cli/compare/v27.5.1...v28.0.0)

[Compare Source](https://github.com/docker/cli/compare/v27.5.1...v28.0.0)

### [`v27.5.1+incompatible`](https://github.com/docker/cli/compare/v27.5.0...v27.5.1)

[Compare Source](https://github.com/docker/cli/compare/v27.5.0...v27.5.1)

### [`v27.5.0+incompatible`](https://github.com/docker/cli/compare/v27.4.1...v27.5.0)

[Compare Source](https://github.com/docker/cli/compare/v27.4.1...v27.5.0)

### [`v27.4.1+incompatible`](https://github.com/docker/cli/compare/v27.4.0...v27.4.1)

[Compare Source](https://github.com/docker/cli/compare/v27.4.0...v27.4.1)

### [`v27.4.0+incompatible`](https://github.com/docker/cli/compare/v27.3.1...v27.4.0)

[Compare Source](https://github.com/docker/cli/compare/v27.3.1...v27.4.0)

### [`v27.3.1+incompatible`](https://github.com/docker/cli/compare/v27.3.0...v27.3.1)

[Compare Source](https://github.com/docker/cli/compare/v27.3.0...v27.3.1)

### [`v27.3.0+incompatible`](https://github.com/docker/cli/compare/v27.2.1...v27.3.0)

[Compare Source](https://github.com/docker/cli/compare/v27.2.1...v27.3.0)

### [`v27.2.1+incompatible`](https://github.com/docker/cli/compare/v27.2.0...v27.2.1)

[Compare Source](https://github.com/docker/cli/compare/v27.2.0...v27.2.1)

### [`v27.2.0+incompatible`](https://github.com/docker/cli/compare/v27.1.2...v27.2.0)

[Compare Source](https://github.com/docker/cli/compare/v27.1.2...v27.2.0)

### [`v27.1.2+incompatible`](https://github.com/docker/cli/compare/v27.1.1...v27.1.2)

[Compare Source](https://github.com/docker/cli/compare/v27.1.1...v27.1.2)

### [`v27.1.1+incompatible`](https://github.com/docker/cli/compare/v27.1.0...v27.1.1)

[Compare Source](https://github.com/docker/cli/compare/v27.1.0...v27.1.1)

### [`v27.1.0+incompatible`](https://github.com/docker/cli/compare/v27.0.3...v27.1.0)

[Compare Source](https://github.com/docker/cli/compare/v27.0.3...v27.1.0)

### [`v27.0.3+incompatible`](https://github.com/docker/cli/compare/v27.0.2...v27.0.3)

[Compare Source](https://github.com/docker/cli/compare/v27.0.2...v27.0.3)

### [`v27.0.2+incompatible`](https://github.com/docker/cli/compare/v27.0.1...v27.0.2)

[Compare Source](https://github.com/docker/cli/compare/v27.0.1...v27.0.2)

### [`v27.0.1+incompatible`](https://github.com/docker/cli/compare/v26.1.5...v27.0.1)

[Compare Source](https://github.com/docker/cli/compare/v26.1.5...v27.0.1)

### [`v26.1.5+incompatible`](https://github.com/docker/cli/compare/v26.1.4...v26.1.5)

[Compare Source](https://github.com/docker/cli/compare/v26.1.4...v26.1.5)

### [`v26.1.4+incompatible`](https://github.com/docker/cli/compare/v26.1.3...v26.1.4)

[Compare Source](https://github.com/docker/cli/compare/v26.1.3...v26.1.4)

### [`v26.1.3+incompatible`](https://github.com/docker/cli/compare/v26.1.2...v26.1.3)

[Compare Source](https://github.com/docker/cli/compare/v26.1.2...v26.1.3)

### [`v26.1.2+incompatible`](https://github.com/docker/cli/compare/v26.1.1...v26.1.2)

[Compare Source](https://github.com/docker/cli/compare/v26.1.1...v26.1.2)

### [`v26.1.1+incompatible`](https://github.com/docker/cli/compare/v26.1.0...v26.1.1)

[Compare Source](https://github.com/docker/cli/compare/v26.1.0...v26.1.1)

### [`v26.1.0+incompatible`](https://github.com/docker/cli/compare/v26.0.2...v26.1.0)

[Compare Source](https://github.com/docker/cli/compare/v26.0.2...v26.1.0)

### [`v26.0.2+incompatible`](https://github.com/docker/cli/compare/v26.0.1...v26.0.2)

[Compare Source](https://github.com/docker/cli/compare/v26.0.1...v26.0.2)

### [`v26.0.1+incompatible`](https://github.com/docker/cli/compare/v26.0.0...v26.0.1)

[Compare Source](https://github.com/docker/cli/compare/v26.0.0...v26.0.1)

### [`v26.0.0+incompatible`](https://github.com/docker/cli/compare/v25.0.7...v26.0.0)

[Compare Source](https://github.com/docker/cli/compare/v25.0.7...v26.0.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC40OC40IiwidXBkYXRlZEluVmVyIjoiNDAuNDguNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: Earl Warren <contact@earl-warren.org>
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/147
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-06-14 10:19:53 +00:00
Renovate Bot
dea4525cec Update module github.com/docker/docker to v28 (#146)
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/146
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-06-11 14:57:23 +00:00
achyrva
4880b091a2 [RDNF #11] fix: skipped jobs have no result & fix: favor command-line over files & chore: fix some comments (#143)
https://github.com/nektos/act/pull/2274
https://github.com/nektos/act/pull/2276
https://github.com/nektos/act/pull/2279
Co-authored-by: lvyaoting <166296299+lvyaoting@users.noreply.github.com>
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: ChristopherHX <christopher.homberger@web.de>
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/143
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: achyrva <achyrva@noreply.code.forgejo.org>
Co-committed-by: achyrva <achyrva@noreply.code.forgejo.org>
2025-06-09 10:25:43 +00:00
achyrva
422e17bc27 [RDNF #10] Remove local action cache if remote has changed (#2284) (#142)
* fix: remove local cache if remote is changed
* test: TestCloneIfRequired

https://github.com/nektos/act/pull/2284

Co-authored-by: Jason Song <i@wolfogre.com>
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/142
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: achyrva <achyrva@noreply.code.forgejo.org>
Co-committed-by: achyrva <achyrva@noreply.code.forgejo.org>
2025-06-09 10:16:45 +00:00
earl-warren
e21cc1ef63 Merge pull request 'fix: artifacts/server: properly format IP/port for listen address' (#135) from c8h4/act:fix-artifact-ip into main
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/135
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-06-09 09:01:39 +00:00
earl-warren
b6e32cf62f Merge pull request '[RDNF #8] "chore: remove repetitive words" and "Trivial: reduce log spam"' (#139) from achyrva/act:nektos-forgejo-acts-3 into main
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/139
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-06-04 05:37:13 +00:00
earl-warren
fea7b3f0f9 Merge pull request '[RDNF #7] test: use ping to improve network test (#2266)' (#138) from achyrva/act:nektos-forgejo-acts-1 into main
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/138
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-06-04 05:36:22 +00:00
Jason Collins
2f6d410258 Trivial: reduce log spam. (#2256)
Co-authored-by: ChristopherHX <christopher.homberger@web.de>
2025-06-03 17:05:18 +03:00
James Kang
8c93cd18c8 chore: remove repetitive words (#2259)
Signed-off-by: majorteach <csgcgl@126.com>
Co-authored-by: ChristopherHX <christopher.homberger@web.de>
2025-06-03 17:03:50 +03:00
Andrii Chyrva
3469dfa14e test: use ping to improve network test (#2266) 2025-06-03 15:46:19 +03:00
Christoph Heiss
92b7df3da7 fix: artifacts: format IP:port pair using net.JoinHostPort()
This ensures that brackets are added for IPv6 addresses.
Without this, This could result in addresses like "2001:db8::1:3456",
which - obviously - would break further down and prevent the server from
starting.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2025-06-01 12:10:47 +02:00
earl-warren
cade5051a8 Merge pull request 'chore: notify long delays in sync' (#93) from earl-warren/act:wip-cascade into main
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/93
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2025-05-27 05:51:58 +00:00
earl-warren
ae25738fac Merge pull request '[RDNF #124] Nektos-Feature: Test writing remote Actions locally' (#125) from achyrva/act:nektos-into-forgejo-4 into main
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/125
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-05-26 05:17:26 +00:00
earl-warren
d90516fdc7 Merge pull request 'PR#6. [RDNF] fix: docker buildx cache restore not working, fix: function name in comment, fix: rootless permission bits (new actions cache)' (#122) from achyrva/act:nektos-into-forgejo-2 into main
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/122
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-05-26 05:15:49 +00:00
earl-warren
91528a6af7 Merge pull request 'feat: add node as shell type' (#120) from Maks1mS/act:feat/node-as-shell-type into main
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/120
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-by: limiting-factor <limiting-factor@noreply.code.forgejo.org>
2025-05-26 05:13:07 +00:00
Earl Warren
1f85564111 fix: use code.forgejo.org/oci
Otherwise it may get rate limited in the CI verifying it works
2025-05-26 05:11:27 +00:00
Michael Kriese
d58552be82 Merge pull request 'Use new distribution/reference import' (#133) from fix/docker-reference into main
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/133
2025-05-13 05:07:04 +00:00
Michael Kriese
5e76fb3468 Use new distribution/reference import 2025-05-12 13:07:18 +02:00
ChristopherHX
ff13bafc55 Introduce LocalRepositoryCache for download remote actions, add them to ActionCache and execute as well 2025-04-28 08:42:10 +00:00
ChristopherHX
868a1f9239 fix: rootless permission bits (new actions cache) (#2242)
* fix: rootless permission bits (new actions cache)

* add test

* fix lint / more tests

(cherry picked from commit d8fc9bade3403d72f4d5a47e103660b462630f48)
2025-04-24 09:02:07 +00:00
huajin tong
2110aed6c7 fix function name in comment (#2240)
Signed-off-by: thirdkeyword <fliterdashen@gmail.com>
(cherry picked from commit 71ae39085eb9ed060ac55b45e55147489faaefa2)
2025-04-24 09:00:54 +00:00
ChristopherHX
f147e45da3 fix: docker buildx cache restore not working 2025-04-24 09:00:51 +00:00
Maxim Slipenko
230f450bc2 tests: add node and python in TestStep_ShellCommand 2025-04-20 08:31:25 +03:00
Maxim Slipenko
e97623bbaf feat: add node as shell type 2025-04-18 18:14:21 +03:00
Michael Kriese
ba102368d3 Merge pull request 'PR#3. Reducing the delta between Nektos/Act and Forgejo/Act' (#117) from achyrva/act:nektos-into-forgejo-0 into main
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/117
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2025-04-16 10:54:47 +00:00
ChristopherHX
f3706ee3ea refactor: simpilfy go-git cache (#2208) 2025-04-12 14:03:12 +00:00
ChristopherHX
7065a7e228 feat: offline mode for new action cache (#2173)
* Try fetch update of the action, otherwise use cached version

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2025-04-12 14:03:12 +00:00
earl-warren
d56e6c6683 Merge pull request 'fix(git): add support for parsing weirder remote URLs' (#115) from 0x5f/act:fix-weird-remote-urls into main
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/115
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-04-01 21:31:24 +00:00
_
c455fb07f2 fix(git): add support for parsing weirder remote URLs 2025-03-31 23:45:06 -07:00
_
3f6addab2a fix(tests): explicitly set git-config user.name/user.email to avoid spurious test failures 2025-03-31 23:45:06 -07:00
benniekiss
53de9c1c27 fix GOOS parsing to match expected GHA RUNNER_OS values (#106)
This PR is a carryover from [upstream](https://github.com/nektos/act/pull/2422):

> github actions reports RUNNER_OS for linux and windows with [capital letters](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/variables#default-environment-variables) (Linux, Windows). This should increase compatibility when runner uses `-self-hosted`
>
> Currently, when workflows are run within containers, RUNNER_OS is [hardcoded](https://code.forgejo.org/forgejo/act/search/branch/main?path=&q=RUNNER_OS&mode=exact) to `Linux` correctly, so this will make RUNNER_OS more consistent.

Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/106
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: benniekiss <benniekiss@noreply.code.forgejo.org>
Co-committed-by: benniekiss <benniekiss@noreply.code.forgejo.org>
2025-03-31 07:52:49 +00:00
Kwonunn
b6a4f494cd Merge pull request 'fix: reduce the time during which the database stays open' (#109) from earl-warren/act:wip-proxy-lock into main
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/109
Reviewed-by: Kwonunn <kwonunn@noreply.code.forgejo.org>
2025-03-24 19:31:09 +00:00
Kwonunn
835a9d2068 fix: move reading cache to separate function 2025-03-24 10:48:28 +01:00
Kwonunn
639b83c26c fix: do not immediately close the db after opening it 2025-03-24 10:17:04 +01:00
Earl Warren
187e1df52c fix: reduce the time during which the database stays open
* During get/upload, close the database while reading/writing so
  it does not stay open for longer than necessary. This may be helpful
  when uploads run in parallel.
* Be more informative when returning error 500
* Make useCache handle errors
* Return 500 immediately when writing the cache fails instead of falling
  through to 200

Refs: https://code.forgejo.org/forgejo/runner/issues/509
2025-03-23 23:25:09 +01:00
Kwonunn
776ccb8b21 Merge pull request 'Fix security issues with cache by proxying access' (#107) from Kwonunn/act:fix/cache-proxy into main
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/107
2025-03-21 14:19:38 +00:00
Kwonunn
ef94958cd5 review: Gusted review 2025-03-21 13:45:51 +00:00
Kwonunn
9150081892 return 404 when not found 2025-03-21 13:45:51 +00:00
Kwonunn
62310a5a09 set external url header 2025-03-21 13:45:51 +00:00
Kwonunn
e54faaf56d fix tests for cache proxy 2025-03-21 13:45:51 +00:00
Kwonunn
43f1298653 fix: external url and mac function matching 2025-03-21 13:45:51 +00:00
Kwonunn
57a2a56e32 add unit tests for mac calculation 2025-03-21 13:45:51 +00:00
Kwonunn
aa0c46539c review: add retries to generating runid in case of collision 2025-03-21 13:45:51 +00:00
Kwonunn
ef43d7c615 review: fix various issues brought up by Gusted 2025-03-21 13:45:51 +00:00
Kwonunn
7a21d64333 review: discard params in clean 2025-03-21 13:45:51 +00:00
Kwonunn
11062e4d6a return 403 instead of 500 when not authorized correctly 2025-03-21 13:45:51 +00:00