From 58ef26e5ee2c64e166a4b7e11f3a76169e218dca Mon Sep 17 00:00:00 2001 From: matkoniecz Date: Sat, 15 Feb 2025 10:07:52 +0100 Subject: [PATCH] Update .forgejo/workflows/demo.yaml --- .forgejo/workflows/demo.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 03b883a..323a3e9 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -19,7 +19,22 @@ jobs: - name: run python script shell: bash run: python3 /data/matkoniecz/test.py - setup_test: + hello_replica: + runs-on: [ lain ] + steps: + - name: create test directory if does not exists + shell: bash + run: mkdir -p /data/matkoniecz + - name: create test file + shell: bash + run: echo "hello" > /data/matkoniecz/hello.txt + - name: create test Python script + shell: bash + run: echo "print(\"Snakehello\")" > /data/matkoniecz/test.py + - name: run python script + shell: bash + run: python3 /data/matkoniecz/test.py + avoid_potential_specials: runs-on: [ lain ] steps: - name: wat