From b4dbc986eca4158cf5c9cc1046aaf0063f84c9ce Mon Sep 17 00:00:00 2001 From: Chris Cowley <1736762+chriscowley@users.noreply.github.com> Date: Mon, 2 Sep 2024 11:20:23 +0200 Subject: [PATCH] try and run tofu init --- .forgejo/workflows/non-lab.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/non-lab.yml b/.forgejo/workflows/non-lab.yml index 361712b..26e1e72 100644 --- a/.forgejo/workflows/non-lab.yml +++ b/.forgejo/workflows/non-lab.yml @@ -1,4 +1,7 @@ -on: [push] +on: + push: + branches: + - 'main' jobs: non-lab: @@ -11,6 +14,7 @@ jobs: sparse-checkout: | non-lab - name: Setup OpenTofu - run: curl -fsSl https://get.opentofu.org/install-opentofu.sh -o /tmp/install-opentofu.sh; chmod +x /tmp/install-opentofu.sh; /tmp/install-opentofu.sh --install-method deb; rm -f /tmp/install-opentofu.sh; cd non-lab - - name: Tree - run: apt update; apt install tree; tree + run: curl -fsSl https://get.opentofu.org/install-opentofu.sh -o /tmp/install-opentofu.sh; chmod +x /tmp/install-opentofu.sh; /tmp/install-opentofu.sh --install-method deb; rm -f /tmp/install-opentofu.sh + - name: Tofu init + working-directory: ${{ githubworkspace }}/non-lab + run: tofu init