Skip to content

Merge pull request #3 from bigwheel/workaround-for-self-hosted-runner… #37

Merge pull request #3 from bigwheel/workaround-for-self-hosted-runner…

Merge pull request #3 from bigwheel/workaround-for-self-hosted-runner… #37

Workflow file for this run

name: test action
'on': [push, workflow_dispatch]
jobs:
example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: echo '0.11.*' > .terraform-version
- id: get-terraform-version-action
uses: ./
- uses: hashicorp/setup-terraform@v1
with:
terraform_version: ${{ steps.get-terraform-version-action.outputs.terraform-version }}
- run: terraform version | grep 0.11.15
success_case:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: echo '0.11.*' > .terraform-version
- id: get-terraform-version-action
uses: ./
- run: test "${{ steps.get-terraform-version-action.outputs.terraform-version }}" = '0.11.15'
failue_case:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: get-terraform-version-action
uses: ./
continue-on-error: true
- run: test "${{ steps.get-terraform-version-action.outcome}}" = 'failure'