From 6b35ea27c3c964de925f6b52966e00cfd20438fb Mon Sep 17 00:00:00 2001 From: Twenty Panda Date: Sun, 23 Jun 2024 09:13:36 +0200 Subject: [PATCH] test: make it easier to comment out tests When the build stage is commented out, the /srv/forgejo-binaries directory will not exist. Change the script to work in both cases. --- .forgejo/prepare-end-to-end/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/prepare-end-to-end/action.yml b/.forgejo/prepare-end-to-end/action.yml index 0fa2794..3f7f059 100644 --- a/.forgejo/prepare-end-to-end/action.yml +++ b/.forgejo/prepare-end-to-end/action.yml @@ -21,8 +21,9 @@ runs: path: /srv/forgejo-binaries - name: chown/chmod /srv/forgejo-binaries run: | - chmod +x /srv/forgejo-binaries/* + mkdir -p /srv/forgejo-binaries chown -R forgejo /srv/forgejo-binaries + chmod -R +x /srv/forgejo-binaries - run: | script=$(pwd)/end-to-end.sh $script run dependencies