fix: actions: refactor force-rebuild tests to use a remote action (#991)

The local actions are always rebuilt with a random tag and cannot be used to verify the force_rebuild setting is working.

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/991
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>
This commit is contained in:
Earl Warren 2025-09-01 17:14:24 +00:00 committed by earl-warren
parent ecff9c4c70
commit d29439c5f7
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201
10 changed files with 50 additions and 34 deletions

View file

@ -1,10 +1,11 @@
---
on:
push:
on: [push]
jobs:
test:
ls:
runs-on: docker
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: ./.forgejo/local-docker-action
- uses: https://code.forgejo.org/forgejo/test-setup-forgejo-docker@main
with:
args: ${{ forge.workspace }}/SOMEFILE
- run: |
test -f ${{ forge.workspace }}/SOMEFILE