branch: externals/cobol-mode
commit aa5ae34dd57839afc74ac769385345f6924bbf45
Author: Kristofer Hjelmtorp <kristo...@hjelmtorp.se>
Commit: Kristofer Hjelmtorp <kristo...@hjelmtorp.se>

    Mirror repository on Github
---
 .build.yaml | 17 +++++++++++++++++
 .elpaignore |  3 ++-
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/.build.yaml b/.build.yaml
new file mode 100644
index 0000000000..02f483fb22
--- /dev/null
+++ b/.build.yaml
@@ -0,0 +1,17 @@
+image: alpine/edge
+secrets:
+  - 15af1398-9022-42e5-8edb-af21ed634d3c
+sources:
+  - g...@git.sr.ht/~hjelmtech/cobol-mode
+environment:
+  GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no
+tasks:
+  - setup: |
+      # This is for not having to cd into your <repo> for each task
+      echo 'cd <repo>' >> ~/.buildenv
+  - check: |
+      if [ "$(git rev-parse origin/main)" != "$(git rev-parse HEAD)" ]; then \
+        complete-build; \
+      fi
+  - mirror: |
+      git push --force --mirror g...@github.com:Trisk3lion/cobol-mode.git
diff --git a/.elpaignore b/.elpaignore
index 39d399ba6d..f4d0480418 100644
--- a/.elpaignore
+++ b/.elpaignore
@@ -1,2 +1,3 @@
 .elpaignore
-tests/
\ No newline at end of file
+tests/
+.build.yaml
\ No newline at end of file

Reply via email to