mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2025-12-31 15:02:19 +00:00
wip changes
Signed-off-by: siddharthasonker95 <158144589+siddharthasonker95@users.noreply.github.com>
This commit is contained in:
parent
f3476b1637
commit
0ac6ac05f7
3 changed files with 13 additions and 13 deletions
19
.github/workflows/setup-tofu.yml
vendored
19
.github/workflows/setup-tofu.yml
vendored
|
|
@ -5,13 +5,6 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
debug:
|
|
||||||
description: 'Enable debug logs for steps'
|
|
||||||
type: boolean
|
|
||||||
required: false
|
|
||||||
default: false
|
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
|
@ -35,7 +28,7 @@ jobs:
|
||||||
|
|
||||||
- name: Setup OpenTofu - ${{ matrix['tofu-versions'] }}
|
- name: Setup OpenTofu - ${{ matrix['tofu-versions'] }}
|
||||||
env:
|
env:
|
||||||
ACTIONS_STEP_DEBUG: ${{ inputs.debug }}
|
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
tofu_version: ${{ matrix['tofu-versions'] }}
|
tofu_version: ${{ matrix['tofu-versions'] }}
|
||||||
|
|
@ -60,7 +53,7 @@ jobs:
|
||||||
|
|
||||||
- name: Setup OpenTofu
|
- name: Setup OpenTofu
|
||||||
env:
|
env:
|
||||||
ACTIONS_STEP_DEBUG: ${{ inputs.debug }}
|
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
tofu_wrapper: ${{ matrix['tofu-wrapper'] }}
|
tofu_wrapper: ${{ matrix['tofu-wrapper'] }}
|
||||||
|
|
@ -85,7 +78,7 @@ jobs:
|
||||||
tofu-run-local:
|
tofu-run-local:
|
||||||
name: 'OpenTofu Run Local'
|
name: 'OpenTofu Run Local'
|
||||||
env:
|
env:
|
||||||
ACTIONS_STEP_DEBUG: ${{ inputs.debug }}
|
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -125,7 +118,7 @@ jobs:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
env:
|
env:
|
||||||
TF_CLOUD_API_TOKEN: 'XXXXXXXXXXXXXX.atlasv1.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
|
TF_CLOUD_API_TOKEN: 'XXXXXXXXXXXXXX.atlasv1.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
|
||||||
ACTIONS_STEP_DEBUG: ${{ inputs.debug }}
|
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -155,7 +148,7 @@ jobs:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
env:
|
env:
|
||||||
TF_CLOUD_API_TOKEN: 'XXXXXXXXXXXXXX.atlasv1.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
|
TF_CLOUD_API_TOKEN: 'XXXXXXXXXXXXXX.atlasv1.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
|
||||||
ACTIONS_STEP_DEBUG: ${{ inputs.debug }}
|
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -181,7 +174,7 @@ jobs:
|
||||||
tofu-credentials-none:
|
tofu-credentials-none:
|
||||||
name: 'OpenTofu No Credentials'
|
name: 'OpenTofu No Credentials'
|
||||||
env:
|
env:
|
||||||
ACTIONS_STEP_DEBUG: ${{ inputs.debug }}
|
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,10 @@ inputs:
|
||||||
description: 'API token for GitHub to increase the rate limit. Defaults to the GITHUB_TOKEN environment variable unless running on Forgejo/Gitea.'
|
description: 'API token for GitHub to increase the rate limit. Defaults to the GITHUB_TOKEN environment variable unless running on Forgejo/Gitea.'
|
||||||
default: ''
|
default: ''
|
||||||
required: false
|
required: false
|
||||||
|
step_debug_logging:
|
||||||
|
description: 'This increases job log verbosity during and after execution when set to `true`. Defaults to `false`'
|
||||||
|
default: 'false'
|
||||||
|
required: false
|
||||||
outputs:
|
outputs:
|
||||||
stdout:
|
stdout:
|
||||||
description: 'The STDOUT stream of the call to the `tofu` binary.'
|
description: 'The STDOUT stream of the call to the `tofu` binary.'
|
||||||
|
|
|
||||||
|
|
@ -155,6 +155,9 @@ async function run () {
|
||||||
// Download requested version
|
// Download requested version
|
||||||
const pathToCLI = await downloadAndExtractCLI(build.url);
|
const pathToCLI = await downloadAndExtractCLI(build.url);
|
||||||
|
|
||||||
|
const stepDebugLogging = core.getInput('step_debug_logging');
|
||||||
|
core.exportVariable('ACTIONS_STEP_DEBUG', stepDebugLogging);
|
||||||
|
|
||||||
// Install our wrapper
|
// Install our wrapper
|
||||||
if (wrapper) {
|
if (wrapper) {
|
||||||
await installWrapper(pathToCLI);
|
await installWrapper(pathToCLI);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue