From 8be2d2542ad7c7e46aa05ef551f7a34c47d44574 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 09:46:56 +1000 Subject: [PATCH 01/41] chore(local-runner): Add compose for local runner testing --- containers/forgejo/docker-compose.yml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 containers/forgejo/docker-compose.yml diff --git a/containers/forgejo/docker-compose.yml b/containers/forgejo/docker-compose.yml new file mode 100644 index 0000000..6e07d0b --- /dev/null +++ b/containers/forgejo/docker-compose.yml @@ -0,0 +1,28 @@ +version: '3.8' + +services: + docker-in-docker: + image: docker:dind + container_name: 'docker_dind' + privileged: 'true' + command: ['dockerd', '-H', 'tcp://0.0.0.0:2375', '--tls=false'] + restart: 'unless-stopped' + + runner: + image: 'data.forgejo.org/forgejo/runner:13' + # commented out because links aren't supported and I'm not sure why the docs + # even has it + # links: + # - docker-in-docker + depends_on: + docker-in-docker: + condition: service_started + container_name: 'runner' + environment: + DOCKER_HOST: tcp://docker-in-docker:2375 + # User without root privileges, but with access to `./data`. + user: 1001:1001 + volumes: + - ./data:/data + restart: 'unless-stopped' + command: 'forgejo-runner daemon --config runner-config.yml' From 130fb229da69bd264391eadbbd32368d831e1c0a Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 09:47:17 +1000 Subject: [PATCH 02/41] feat(action): Add demo action --- .forgejo/workflows/demo.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .forgejo/workflows/demo.yaml diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml new file mode 100644 index 0000000..efdc13f --- /dev/null +++ b/.forgejo/workflows/demo.yaml @@ -0,0 +1,6 @@ +on: [push] +jobs: + test: + runs-on: docker + steps: + - run: echo All good! From 8dd6f94bde13b09c840af7e73b637d55eb8476eb Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 10:12:07 +1000 Subject: [PATCH 03/41] feat(action): Test dotnet runner --- .forgejo/workflows/demo.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index efdc13f..b4f84d6 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -4,3 +4,7 @@ jobs: runs-on: docker steps: - run: echo All good! + asdf: + runs-on: dotnet + steps: + - run: echo Dotnet I guess? From 8384d2f68f6411158f142bf4611a38d29479304f Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 10:28:47 +1000 Subject: [PATCH 04/41] feat(action): Try test composite local action --- .forgejo/dotnet-build/action.yml | 22 ++++++++++++++++++++++ .forgejo/workflows/demo.yaml | 6 +++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .forgejo/dotnet-build/action.yml diff --git a/.forgejo/dotnet-build/action.yml b/.forgejo/dotnet-build/action.yml new file mode 100644 index 0000000..e707255 --- /dev/null +++ b/.forgejo/dotnet-build/action.yml @@ -0,0 +1,22 @@ +inputs: + # input-one: + # default: 'one' + # description: 'description one' + # input-two-required: + # description: 'description two' + # required: true +outputs: + key: + description: 'output value' + value: "${{ steps.one.outputs.key }}" + +runs: + using: "composite" + steps: + - name: FORGEJO_ACTION_PATH + run: | + set -x + test -e "$FORGEJO_ACTION_PATH" + test "$FORGEJO_ACTION_PATH" = "${{ env.FORGEJO_ACTION_PATH }}" + + - run: echo key=${{ inputs.input-two-required }} >> $FORGEJO_OUTPUT diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index b4f84d6..6548376 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -7,4 +7,8 @@ jobs: asdf: runs-on: dotnet steps: - - run: echo Dotnet I guess? + - id: dotnet-build + uses: ./.forgejo/dotnet-build + # with: + # input-two-required: "two" + - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From 3330728b5ab297df4647a519e7d1325b2d7e0b07 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 10:35:59 +1000 Subject: [PATCH 05/41] fix(action): Remove relative directory and comment out test job --- .forgejo/workflows/demo.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 6548376..e7bcdc1 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -1,14 +1,14 @@ on: [push] jobs: - test: - runs-on: docker - steps: - - run: echo All good! - asdf: + # test: + # runs-on: docker + # steps: + # - run: echo All good! + dotnet: runs-on: dotnet steps: - id: dotnet-build - uses: ./.forgejo/dotnet-build + uses: .forgejo/dotnet-build # with: # input-two-required: "two" - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From f595ed517ba4bcf70e3af0daa62cc970b328270b Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 10:48:26 +1000 Subject: [PATCH 06/41] feat(action): Try testing with branch ref --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index e7bcdc1..114638a 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -8,7 +8,7 @@ jobs: runs-on: dotnet steps: - id: dotnet-build - uses: .forgejo/dotnet-build + uses: .forgejo/dotnet-build@feature/forgejo-runner-and-actions # with: # input-two-required: "two" - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From 9028ebf4340b7558d2991ae3986a05fac5448952 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 10:50:31 +1000 Subject: [PATCH 07/41] feat(action): Try relative ref --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 114638a..19b0fc4 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -8,7 +8,7 @@ jobs: runs-on: dotnet steps: - id: dotnet-build - uses: .forgejo/dotnet-build@feature/forgejo-runner-and-actions + uses: ./.forgejo/dotnet-build@feature/forgejo-runner-and-actions # with: # input-two-required: "two" - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From 803159a4c6c384ce3353661390d6914f2adb3241 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 10:55:58 +1000 Subject: [PATCH 08/41] feat(action): Try use repository? --- .forgejo/workflows/demo.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 19b0fc4..7df76d1 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -8,7 +8,9 @@ jobs: runs-on: dotnet steps: - id: dotnet-build - uses: ./.forgejo/dotnet-build@feature/forgejo-runner-and-actions + uses: Nulah.PowerShell/dotnet-build + with: + ref: 'feature/forgejo-runner-and-actions' # with: # input-two-required: "two" - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From 31e1f45431d7b4b46423352251a2ed223a553057 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 10:56:40 +1000 Subject: [PATCH 09/41] feat(action): Remove incorrect with --- .forgejo/workflows/demo.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 7df76d1..e57951c 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -8,9 +8,7 @@ jobs: runs-on: dotnet steps: - id: dotnet-build - uses: Nulah.PowerShell/dotnet-build - with: - ref: 'feature/forgejo-runner-and-actions' + uses: Nulah.PowerShell/dotnet-build@feature/forgejo-runner-and-actions' # with: # input-two-required: "two" - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From 7a70bfd8786d0eb1e3cca6ee6a4a6b6e642a4e96 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 10:59:51 +1000 Subject: [PATCH 10/41] feat(action): Use absolute action url --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index e57951c..6c45a4f 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -8,7 +8,7 @@ jobs: runs-on: dotnet steps: - id: dotnet-build - uses: Nulah.PowerShell/dotnet-build@feature/forgejo-runner-and-actions' + uses: https://moar.ws/git/pascal_nulah/Nulah.PowerShell/.forgejo/dotnet-build@feature/forgejo-runner-and-actions' # with: # input-two-required: "two" - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From 68722c3a328bc9ffbc33a7623147f596a90932c2 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 11:07:48 +1000 Subject: [PATCH 11/41] feat(action): Don't use absolute maybe relative from the repo? --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 6c45a4f..1167e74 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -8,7 +8,7 @@ jobs: runs-on: dotnet steps: - id: dotnet-build - uses: https://moar.ws/git/pascal_nulah/Nulah.PowerShell/.forgejo/dotnet-build@feature/forgejo-runner-and-actions' + uses: ./Nulah.PowerShell/.forgejo/dotnet-build@feature/forgejo-runner-and-actions' # with: # input-two-required: "two" - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From b3b920d77808845c8cc49cba6b7f94b9c0ec4f51 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 11:08:10 +1000 Subject: [PATCH 12/41] feat(action): How about not relative lol --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 1167e74..b9bb144 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -8,7 +8,7 @@ jobs: runs-on: dotnet steps: - id: dotnet-build - uses: ./Nulah.PowerShell/.forgejo/dotnet-build@feature/forgejo-runner-and-actions' + uses: Nulah.PowerShell/.forgejo/dotnet-build@feature/forgejo-runner-and-actions' # with: # input-two-required: "two" - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From 04983e4b936153e81b1121eb79b123d44964cde1 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 11:08:37 +1000 Subject: [PATCH 13/41] feat(action): How about absolute with a username? --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index b9bb144..53a7880 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -8,7 +8,7 @@ jobs: runs-on: dotnet steps: - id: dotnet-build - uses: Nulah.PowerShell/.forgejo/dotnet-build@feature/forgejo-runner-and-actions' + uses: https://moar.ws/git/Nulah.PowerShell/.forgejo/dotnet-build@feature/forgejo-runner-and-actions' # with: # input-two-required: "two" - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From 5cfbcc41d57b47b514d480b6c0f4fa7e59d2b314 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 11:11:36 +1000 Subject: [PATCH 14/41] feat(action): Apparently it might need a checkout action? --- .forgejo/workflows/demo.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 53a7880..211e8dc 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -7,8 +7,9 @@ jobs: dotnet: runs-on: dotnet steps: + - uses: actions/checkout@v3 - id: dotnet-build - uses: https://moar.ws/git/Nulah.PowerShell/.forgejo/dotnet-build@feature/forgejo-runner-and-actions' + uses: ./.forgejo/dotnet-build@feature/forgejo-runner-and-actions' # with: # input-two-required: "two" - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From f6ae48c9ab35f7c3d361b9d7b9fe2c4a7b808783 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 11:14:55 +1000 Subject: [PATCH 15/41] feat(action): Use absolute action path for forgejo lol! --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 211e8dc..d40aafc 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -7,7 +7,7 @@ jobs: dotnet: runs-on: dotnet steps: - - uses: actions/checkout@v3 + - uses: https://code.forgejo.com/actions/checkout@v3 - id: dotnet-build uses: ./.forgejo/dotnet-build@feature/forgejo-runner-and-actions' # with: From a4c7572c89bb8ecccbcc1ea808c5203a295a8c43 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 15:13:29 +1000 Subject: [PATCH 16/41] feat(action): Remove code.forgejo from uses --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index d40aafc..211e8dc 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -7,7 +7,7 @@ jobs: dotnet: runs-on: dotnet steps: - - uses: https://code.forgejo.com/actions/checkout@v3 + - uses: actions/checkout@v3 - id: dotnet-build uses: ./.forgejo/dotnet-build@feature/forgejo-runner-and-actions' # with: From 89c52eaadec9c9575a9905b530b7294f63b9e284 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 15:19:20 +1000 Subject: [PATCH 17/41] feat(action): Guess I'll use docker for the uses? --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 211e8dc..13065ec 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -5,7 +5,7 @@ jobs: # steps: # - run: echo All good! dotnet: - runs-on: dotnet + runs-on: docker steps: - uses: actions/checkout@v3 - id: dotnet-build From b28e40da6461c45a6acbc4f265a64ba871cdc152 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 15:28:39 +1000 Subject: [PATCH 18/41] feat(action): Use actions/checkout@v7, add repository and ref inputs --- .forgejo/workflows/demo.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 13065ec..31b3f7f 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -7,9 +7,13 @@ jobs: dotnet: runs-on: docker steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 + with: + repository: "pascal_nulah/Nulah.PowerShell" + ref: "feature/forgejo-runner-and-actions" + - id: dotnet-build - uses: ./.forgejo/dotnet-build@feature/forgejo-runner-and-actions' + uses: ./.forgejo/dotnet-build' # with: # input-two-required: "two" - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From eae85bc42fd808d1097fbc10681f3b64a760ee15 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 15:30:27 +1000 Subject: [PATCH 19/41] feat(action): Try prefixing the repository with a subdomain --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 31b3f7f..95f9a0c 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -9,7 +9,7 @@ jobs: steps: - uses: actions/checkout@v7 with: - repository: "pascal_nulah/Nulah.PowerShell" + repository: "git/pascal_nulah/Nulah.PowerShell" ref: "feature/forgejo-runner-and-actions" - id: dotnet-build From 1549a0b0c5c4fd1f0cf5fed2dd60c890354f36fd Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 15:32:38 +1000 Subject: [PATCH 20/41] feat(action): Move subfolder to github-server-url I guess? --- .forgejo/workflows/demo.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 95f9a0c..6ee13ad 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -9,8 +9,9 @@ jobs: steps: - uses: actions/checkout@v7 with: - repository: "git/pascal_nulah/Nulah.PowerShell" + repository: "pascal_nulah/Nulah.PowerShell" ref: "feature/forgejo-runner-and-actions" + github-server-url: "git" - id: dotnet-build uses: ./.forgejo/dotnet-build' From 2b285007077503bb5e23de356e13f72aed4f1f07 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 15:33:50 +1000 Subject: [PATCH 21/41] feat(action): Lets try a full url for github-server-url --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 6ee13ad..d2ecb3a 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -11,7 +11,7 @@ jobs: with: repository: "pascal_nulah/Nulah.PowerShell" ref: "feature/forgejo-runner-and-actions" - github-server-url: "git" + github-server-url: "https://moar.ws/git" - id: dotnet-build uses: ./.forgejo/dotnet-build' From 44c1b4deb3bb04f8dc2460e74d92c5335a8c3a04 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 15:37:47 +1000 Subject: [PATCH 22/41] feat(action): How about a trailing slash so you use the full url? Will that help you you fucking c --- .forgejo/workflows/demo.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index d2ecb3a..b43872c 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -11,8 +11,7 @@ jobs: with: repository: "pascal_nulah/Nulah.PowerShell" ref: "feature/forgejo-runner-and-actions" - github-server-url: "https://moar.ws/git" - + github-server-url: "https://moar.ws/git/" - id: dotnet-build uses: ./.forgejo/dotnet-build' # with: From b7d81bb1ae019d504aa9ed7ac26e96e75734a2b9 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 16:18:46 +1000 Subject: [PATCH 23/41] feat(action): Remove github-server-url because the implementation of actions/checkout is only for GitHub and it strips everything except the top level domain fuck shit like this fuck GitHub --- .forgejo/workflows/demo.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index b43872c..8336982 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -11,7 +11,6 @@ jobs: with: repository: "pascal_nulah/Nulah.PowerShell" ref: "feature/forgejo-runner-and-actions" - github-server-url: "https://moar.ws/git/" - id: dotnet-build uses: ./.forgejo/dotnet-build' # with: From b6727c7c9d8922ca5bf4613cfa6707e34ac19d0b Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 16:19:52 +1000 Subject: [PATCH 24/41] feat(action): Readd github-server-url because I forgot I need the fucking thing because I set up a subdomain to try and get this fucker to work --- .forgejo/workflows/demo.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 8336982..e04b361 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -11,6 +11,7 @@ jobs: with: repository: "pascal_nulah/Nulah.PowerShell" ref: "feature/forgejo-runner-and-actions" + github-server-url: "https://git.moar.ws/" - id: dotnet-build uses: ./.forgejo/dotnet-build' # with: From 9131865d862ba8a1541990a7374b1a5d42759fd1 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 16:21:45 +1000 Subject: [PATCH 25/41] feat(action): idk let's try make it find the action in the now cloned repo this way --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index e04b361..6ef62f0 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -13,7 +13,7 @@ jobs: ref: "feature/forgejo-runner-and-actions" github-server-url: "https://git.moar.ws/" - id: dotnet-build - uses: ./.forgejo/dotnet-build' + uses: .forgejo/dotnet-build' # with: # input-two-required: "two" - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From 0778f679282a2dff736aa00d1ce810869f99f632 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 16:26:19 +1000 Subject: [PATCH 26/41] feat(action): idk maybe it needs an absolute path? --- .forgejo/workflows/demo.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 6ef62f0..3c62cb9 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -7,13 +7,14 @@ jobs: dotnet: runs-on: docker steps: - - uses: actions/checkout@v7 + - id: checkout + uses: actions/checkout@v7 with: repository: "pascal_nulah/Nulah.PowerShell" ref: "feature/forgejo-runner-and-actions" github-server-url: "https://git.moar.ws/" - id: dotnet-build - uses: .forgejo/dotnet-build' + uses: ./.forgejo/dotnet-build/action.yml' # with: # input-two-required: "two" - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From 69c7cfa899f7932bb7902412905ecfb44336909c Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 16:32:54 +1000 Subject: [PATCH 27/41] feat(action): Just show me something fucking useful after checkout --- .forgejo/workflows/demo.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 3c62cb9..4f211a2 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -13,8 +13,11 @@ jobs: repository: "pascal_nulah/Nulah.PowerShell" ref: "feature/forgejo-runner-and-actions" github-server-url: "https://git.moar.ws/" - - id: dotnet-build - uses: ./.forgejo/dotnet-build/action.yml' - # with: - # input-two-required: "two" - - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" + # idk just show me what the fuck exists + - name: list directory contents + run: ls -la + # - id: dotnet-build + # uses: ./.forgejo/dotnet-build/action.yml' + # # with: + # # input-two-required: "two" + # - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" From 59e1f6b1895828f00ca074520472241ec86bf482 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 16:38:27 +1000 Subject: [PATCH 28/41] feat(action): how about you tell me what's in that directory that exists dickhead --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 4f211a2..c71b8ec 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -15,7 +15,7 @@ jobs: github-server-url: "https://git.moar.ws/" # idk just show me what the fuck exists - name: list directory contents - run: ls -la + run: ls ./.forgejo -la # - id: dotnet-build # uses: ./.forgejo/dotnet-build/action.yml' # # with: From 8ab78631630014b64d815f3c574762e67b6a0705 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 16:39:55 +1000 Subject: [PATCH 29/41] feat(actions): how about the next directory that exists --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index c71b8ec..daeb189 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -15,7 +15,7 @@ jobs: github-server-url: "https://git.moar.ws/" # idk just show me what the fuck exists - name: list directory contents - run: ls ./.forgejo -la + run: ls ./.forgejo/dotnet-build -la # - id: dotnet-build # uses: ./.forgejo/dotnet-build/action.yml' # # with: From 9573da25df2738a5bb3031fc50f0d7eeba8854ee Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 16:41:44 +1000 Subject: [PATCH 30/41] feat(action): we've verified the file exists from the output of the last step so lets make a predictable error by string to use it next --- .forgejo/workflows/demo.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index daeb189..c27680d 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -16,6 +16,8 @@ jobs: # idk just show me what the fuck exists - name: list directory contents run: ls ./.forgejo/dotnet-build -la + - name: why not use the action we just verified exists from above + uses: ./.forgejo/dotnet-build # - id: dotnet-build # uses: ./.forgejo/dotnet-build/action.yml' # # with: From 22bb1d235a231983c98a26e7565b2be37e0b31aa Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 16:46:04 +1000 Subject: [PATCH 31/41] feat(action): let's try updating the action --- .forgejo/dotnet-build/action.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.forgejo/dotnet-build/action.yml b/.forgejo/dotnet-build/action.yml index e707255..5c9d803 100644 --- a/.forgejo/dotnet-build/action.yml +++ b/.forgejo/dotnet-build/action.yml @@ -1,4 +1,5 @@ inputs: + idk: # input-one: # default: 'one' # description: 'description one' @@ -13,10 +14,7 @@ outputs: runs: using: "composite" steps: - - name: FORGEJO_ACTION_PATH + - name: From the dotnet-build action run: | - set -x - test -e "$FORGEJO_ACTION_PATH" - test "$FORGEJO_ACTION_PATH" = "${{ env.FORGEJO_ACTION_PATH }}" - - - run: echo key=${{ inputs.input-two-required }} >> $FORGEJO_OUTPUT + ls -la + echo tee hee ${{ inputs.idk }} From 12312243679018b9ac932dbaff867adf4b16f7c9 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 16:47:21 +1000 Subject: [PATCH 32/41] feat(action): change name to id to see if the output changes --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index c27680d..552e050 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -16,7 +16,7 @@ jobs: # idk just show me what the fuck exists - name: list directory contents run: ls ./.forgejo/dotnet-build -la - - name: why not use the action we just verified exists from above + - id: why not use the action we just verified exists from above uses: ./.forgejo/dotnet-build # - id: dotnet-build # uses: ./.forgejo/dotnet-build/action.yml' From db111a68fb3c7bd3f134e52bfb16fd66caf50906 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 16:49:55 +1000 Subject: [PATCH 33/41] feat(actions): uwu id has special naming conventions resulting in useless output errors uwu --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 552e050..b36337d 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -16,7 +16,7 @@ jobs: # idk just show me what the fuck exists - name: list directory contents run: ls ./.forgejo/dotnet-build -la - - id: why not use the action we just verified exists from above + - id: why_not_use_the_action_we_just_verified_exists_from_above uses: ./.forgejo/dotnet-build # - id: dotnet-build # uses: ./.forgejo/dotnet-build/action.yml' From c8860ea0c0ee32f6a036fc6703c39e36ab335b91 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 16:53:05 +1000 Subject: [PATCH 34/41] feat(action): break everything by splitting it into stages --- .forgejo/workflows/demo.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index b36337d..0443181 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -4,7 +4,7 @@ jobs: # runs-on: docker # steps: # - run: echo All good! - dotnet: + checkout: runs-on: docker steps: - id: checkout @@ -13,7 +13,9 @@ jobs: repository: "pascal_nulah/Nulah.PowerShell" ref: "feature/forgejo-runner-and-actions" github-server-url: "https://git.moar.ws/" - # idk just show me what the fuck exists + dotnet: + runs-on: dotnet + steps: - name: list directory contents run: ls ./.forgejo/dotnet-build -la - id: why_not_use_the_action_we_just_verified_exists_from_above From db5f6371b59e54be3251bfc8fbe9b89c46f3aa90 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 16:59:50 +1000 Subject: [PATCH 35/41] feat(action): yeah nah how about we actually make it run on dotnet and see what breaks --- .forgejo/workflows/demo.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 0443181..b6685a8 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -5,7 +5,7 @@ jobs: # steps: # - run: echo All good! checkout: - runs-on: docker + runs-on: dotnet steps: - id: checkout uses: actions/checkout@v7 @@ -13,9 +13,6 @@ jobs: repository: "pascal_nulah/Nulah.PowerShell" ref: "feature/forgejo-runner-and-actions" github-server-url: "https://git.moar.ws/" - dotnet: - runs-on: dotnet - steps: - name: list directory contents run: ls ./.forgejo/dotnet-build -la - id: why_not_use_the_action_we_just_verified_exists_from_above From 9dbc7c41ea76dff88a0a8cf4ffdbf6bba93a7356 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 17:11:57 +1000 Subject: [PATCH 36/41] feat(action): test self hosted action --- .forgejo/workflows/demo.yaml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index b6685a8..1289eb6 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -5,20 +5,17 @@ jobs: # steps: # - run: echo All good! checkout: - runs-on: dotnet + runs-on: self-hosted:host steps: - - id: checkout - uses: actions/checkout@v7 - with: - repository: "pascal_nulah/Nulah.PowerShell" - ref: "feature/forgejo-runner-and-actions" - github-server-url: "https://git.moar.ws/" + # runs-on: dotnet + # steps: + # - id: checkout + # uses: actions/checkout@v7 + # with: + # repository: "pascal_nulah/Nulah.PowerShell" + # ref: "feature/forgejo-runner-and-actions" + # github-server-url: "https://git.moar.ws/" - name: list directory contents - run: ls ./.forgejo/dotnet-build -la - - id: why_not_use_the_action_we_just_verified_exists_from_above - uses: ./.forgejo/dotnet-build - # - id: dotnet-build - # uses: ./.forgejo/dotnet-build/action.yml' - # # with: - # # input-two-required: "two" - # - run: test "${{ steps.dotnet-build.outputs.key }}" = "two" + run: ls -la + # - id: why_not_use_the_action_we_just_verified_exists_from_above + # uses: ./.forgejo/dotnet-build From 56f895d53d3269be32ce995dc68e3b9f74c8b41d Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 17:12:30 +1000 Subject: [PATCH 37/41] feat(action): use correct self-hosted label --- .forgejo/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 1289eb6..c1ee55b 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -5,7 +5,7 @@ jobs: # steps: # - run: echo All good! checkout: - runs-on: self-hosted:host + runs-on: self-hosted steps: # runs-on: dotnet # steps: From 06a687dadcf0fb2f846cd2bf91113c09d2f4dda2 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 17:17:55 +1000 Subject: [PATCH 38/41] feat(action): environment variable test --- .forgejo/workflows/demo.yaml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index c1ee55b..0b643de 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -6,16 +6,10 @@ jobs: # - run: echo All good! checkout: runs-on: self-hosted + env: + test: value steps: - # runs-on: dotnet - # steps: - # - id: checkout - # uses: actions/checkout@v7 - # with: - # repository: "pascal_nulah/Nulah.PowerShell" - # ref: "feature/forgejo-runner-and-actions" - # github-server-url: "https://git.moar.ws/" - name: list directory contents - run: ls -la - # - id: why_not_use_the_action_we_just_verified_exists_from_above - # uses: ./.forgejo/dotnet-build + run: | + ls -la + echo ${{ env.test }} From 1095382fac8526ade9c1a1491ea378c70a0c746c Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 17:21:57 +1000 Subject: [PATCH 39/41] feat(action): try updating environment variable across steps --- .forgejo/workflows/demo.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 0b643de..6daaee1 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -9,7 +9,13 @@ jobs: env: test: value steps: - - name: list directory contents + - name: checkout + run: | + git checkout + - name: Output and update env.test + run: | + echo ${{ env.test }} + echo 'test=good' >> $FORGEJO_OUTPUT + - name: Output updated env.test? run: | - ls -la echo ${{ env.test }} From 17e9c79ceedeea065d9a37ee37b1c00a061c3730 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 17:22:35 +1000 Subject: [PATCH 40/41] feat(action): whoops forgot to comment out a git stage I hadn't wrote --- .forgejo/workflows/demo.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 6daaee1..db8a062 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -9,9 +9,9 @@ jobs: env: test: value steps: - - name: checkout - run: | - git checkout + # - name: checkout + # run: | + # git checkout - name: Output and update env.test run: | echo ${{ env.test }} From 49482c3e1dca2996303e0e8e5fbf780ab0b4a35b Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 8 Sep 2026 17:26:38 +1000 Subject: [PATCH 41/41] feat(action): try use output variables --- .forgejo/workflows/demo.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index db8a062..1d4c28e 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -12,10 +12,12 @@ jobs: # - name: checkout # run: | # git checkout - - name: Output and update env.test + - name: Output and set some-result.test + id: some-result run: | echo ${{ env.test }} echo 'test=good' >> $FORGEJO_OUTPUT - name: Output updated env.test? run: | - echo ${{ env.test }} + echo ${{ steps.some-result.outputs.test }} + test ${{ steps.some-result.outputs.test }} = good