Browse Source

added woodpecker integration

Chris Boesch 1 year ago
parent
commit
afee8d9c7a
3 changed files with 13 additions and 1 deletions
  1. 12 0
      .woodpecker/eowyn.yml
  2. 1 1
      patches/eowyn.sh
  3. BIN
      test/patch

+ 12 - 0
.woodpecker/eowyn.yml

@@ -0,0 +1,12 @@
+steps:
+  eowyn:
+    image: buddyspencer/ziglang
+    # image: debian
+    commands:
+      - sh ./patches/eowyn.sh
+    when:
+      events:
+        - push
+        - pull-requests
+        - cron
+      cron: "Daily"

+ 1 - 1
patches/eowyn.sh

@@ -39,7 +39,7 @@ do
         # Apply the bandages to the wounds, grow new limbs, let
         # Apply the bandages to the wounds, grow new limbs, let
         # new life spring into the broken bodies of the fallen.
         # new life spring into the broken bodies of the fallen.
         echo Healing "$true_name"...
         echo Healing "$true_name"...
-        patch --output="patches/healed/$true_name.zig" "$broken" "$patch_name"
+        ./test/patch --output="patches/healed/$true_name.zig" "$broken" "$patch_name"
     else
     else
         echo Cannot heal "$true_name". No patch found.
         echo Cannot heal "$true_name". No patch found.
     fi
     fi

BIN
test/patch