From c169eb0a0972fed39e29c00a34cf6401267d86ac Mon Sep 17 00:00:00 2001 From: Christopher Lindsay Date: Thu, 29 Feb 2024 10:32:37 -0500 Subject: [PATCH] chore: testing with original action --- .github/actions/tf-apply/action.yaml | 31 +++++----------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/.github/actions/tf-apply/action.yaml b/.github/actions/tf-apply/action.yaml index bb15f1637e..399f5721d3 100644 --- a/.github/actions/tf-apply/action.yaml +++ b/.github/actions/tf-apply/action.yaml @@ -68,28 +68,11 @@ runs: terraform_version: ${{ inputs.terraform_version }} terraform_wrapper: false - # - name: Twingate Connect - # if: ${{ inputs.twingate_service_key != '' }} # Corrected syntax with a colon after the condition - # uses: twingate/github-action@4493ffc3806241aa98194a3fa679f874bce013b5 - # with: - # service-key: ${{ inputs.twingate_service_key }} - - - name: Install Twingate - if: ${{ inputs.twingate_service_key != '' }} - shell: bash - run: | - echo "deb [trusted=yes] https://packages.twingate.com/apt/ /" | sudo tee /etc/apt/sources.list.d/twingate.list - sudo apt update -yq - sudo apt install -yq twingate - - - name: Setup and start Twingate - if: ${{ inputs.twingate_service_key != '' }} - shell: bash - env: - TWINGATE_SERVICE_KEY: ${{ inputs.twingate_service_key }} - run: | - echo $TWINGATE_SERVICE_KEY | sudo twingate setup --headless=- - sudo twingate start + - name: Twingate Connect + if: ${{ inputs.twingate_service_key != '' }} # Corrected syntax with a colon after the condition + uses: twingate/github-action@4493ffc3806241aa98194a3fa679f874bce013b5 + with: + service-key: ${{ inputs.twingate_service_key }} - name: Terraform Init id: init @@ -145,7 +128,3 @@ runs: ``` ${{ steps.apply.outputs.apply }} ``` - - name: Stop Twingate - if: ${{ inputs.twingate_service_key != '' }} - shell: bash - run: sudo twingate stop \ No newline at end of file