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