Compare commits

...
Author SHA1 Message Date
siddharthasonker95 0ac6ac05f7 wip changes
Signed-off-by: siddharthasonker95 <158144589+siddharthasonker95@users.noreply.github.com>
2024-04-12 20:14:56 +05:30
siddharthasonker95 f3476b1637 Added input variable for action steps debug
Signed-off-by: siddharthasonker95 <158144589+siddharthasonker95@users.noreply.github.com>
2024-03-14 13:41:45 +05:30
3 changed files with 17 additions and 0 deletions

No files matched your search

+10
View File
@@ -27,6 +27,8 @@ jobs:
uses: actions/checkout@v4
- name: Setup OpenTofu - ${{ matrix['tofu-versions'] }}
env:
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
uses: ./
with:
tofu_version: ${{ matrix['tofu-versions'] }}
@@ -50,6 +52,8 @@ jobs:
uses: actions/checkout@v4
- name: Setup OpenTofu
env:
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
uses: ./
with:
tofu_wrapper: ${{ matrix['tofu-wrapper'] }}
@@ -73,6 +77,8 @@ jobs:
run: tofu fmt -check -list=true -no-color
tofu-run-local:
name: 'OpenTofu Run Local'
env:
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
runs-on: ${{ matrix.os }}
strategy:
matrix:
@@ -112,6 +118,7 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
env:
TF_CLOUD_API_TOKEN: 'XXXXXXXXXXXXXX.atlasv1.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -141,6 +148,7 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
env:
TF_CLOUD_API_TOKEN: 'XXXXXXXXXXXXXX.atlasv1.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -165,6 +173,8 @@ jobs:
tofu-credentials-none:
name: 'OpenTofu No Credentials'
env:
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
runs-on: ${{ matrix.os }}
strategy:
matrix:
+4
View File
@@ -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.'
default: ''
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:
stdout:
description: 'The STDOUT stream of the call to the `tofu` binary.'
+3
View File
@@ -155,6 +155,9 @@ async function run () {
// Download requested version
const pathToCLI = await downloadAndExtractCLI(build.url);
const stepDebugLogging = core.getInput('step_debug_logging');
core.exportVariable('ACTIONS_STEP_DEBUG', stepDebugLogging);
// Install our wrapper
if (wrapper) {
await installWrapper(pathToCLI);