mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2026-11-28 19:14:22 +01:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ac6ac05f7 | ||
|
|
f3476b1637 | ||
|
|
d00c6817f1 |
No files matched your search
@@ -27,6 +27,8 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup OpenTofu - ${{ matrix['tofu-versions'] }}
|
- name: Setup OpenTofu - ${{ matrix['tofu-versions'] }}
|
||||||
|
env:
|
||||||
|
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
tofu_version: ${{ matrix['tofu-versions'] }}
|
tofu_version: ${{ matrix['tofu-versions'] }}
|
||||||
@@ -50,6 +52,8 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup OpenTofu
|
- name: Setup OpenTofu
|
||||||
|
env:
|
||||||
|
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
tofu_wrapper: ${{ matrix['tofu-wrapper'] }}
|
tofu_wrapper: ${{ matrix['tofu-wrapper'] }}
|
||||||
@@ -73,6 +77,8 @@ jobs:
|
|||||||
run: tofu fmt -check -list=true -no-color
|
run: tofu fmt -check -list=true -no-color
|
||||||
tofu-run-local:
|
tofu-run-local:
|
||||||
name: 'OpenTofu Run Local'
|
name: 'OpenTofu Run Local'
|
||||||
|
env:
|
||||||
|
ACTIONS_STEP_DEBUG: $ACTIONS_STEP_DEBUG
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -112,6 +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: $ACTIONS_STEP_DEBUG
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -141,6 +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: $ACTIONS_STEP_DEBUG
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -165,6 +173,8 @@ jobs:
|
|||||||
|
|
||||||
tofu-credentials-none:
|
tofu-credentials-none:
|
||||||
name: 'OpenTofu No Credentials'
|
name: 'OpenTofu No Credentials'
|
||||||
|
env:
|
||||||
|
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);
|
||||||
|
|||||||
Generated
+6
-6
@@ -17,7 +17,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vercel/ncc": "0.38.1",
|
"@vercel/ncc": "0.38.1",
|
||||||
"husky": "8.0.3",
|
"husky": "9.0.11",
|
||||||
"jest": "29.7.0",
|
"jest": "29.7.0",
|
||||||
"semistandard": "17.0.0"
|
"semistandard": "17.0.0"
|
||||||
}
|
}
|
||||||
@@ -3361,15 +3361,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/husky": {
|
"node_modules/husky": {
|
||||||
"version": "8.0.3",
|
"version": "9.0.11",
|
||||||
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz",
|
||||||
"integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
|
"integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"husky": "lib/bin.js"
|
"husky": "bin.mjs"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/typicode"
|
"url": "https://github.com/sponsors/typicode"
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vercel/ncc": "0.38.1",
|
"@vercel/ncc": "0.38.1",
|
||||||
"husky": "8.0.3",
|
"husky": "9.0.11",
|
||||||
"jest": "29.7.0",
|
"jest": "29.7.0",
|
||||||
"semistandard": "17.0.0"
|
"semistandard": "17.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user