From 0810cd85ac73e0f36821da890b904efe60501d4e Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sat, 18 Jan 2025 14:42:00 +0100 Subject: [PATCH] moved to an own action instead of the javascript action --- .forgejo/actions/artifact-upload/action.yml | 15 +++++++++++++++ .forgejo/workflows/container-build.yml | 7 ++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .forgejo/actions/artifact-upload/action.yml diff --git a/.forgejo/actions/artifact-upload/action.yml b/.forgejo/actions/artifact-upload/action.yml new file mode 100644 index 0000000..1007ae8 --- /dev/null +++ b/.forgejo/actions/artifact-upload/action.yml @@ -0,0 +1,15 @@ +--- +inputs: + name: + default: artifact.tar + description: Artifact name + path: + description: Paths of the file or directory with the data + required: true +runs: + using: composite + steps: + - name: collect + run: true + - name: upload + run: true \ No newline at end of file diff --git a/.forgejo/workflows/container-build.yml b/.forgejo/workflows/container-build.yml index a244a0e..251d444 100644 --- a/.forgejo/workflows/container-build.yml +++ b/.forgejo/workflows/container-build.yml @@ -13,7 +13,8 @@ jobs: steps: - run: kc.sh build working-directory: /opt/keycloak/ - - uses: actions/upload-artifact@v3 + - id: local-upload + uses: ./.forgejo/actions/artifact-upload with: - name: keycloak-dir - path: /opt/keycloak/ + name: keycloak.tar + path: /opt/keycloak \ No newline at end of file