diff --git a/action.yml b/action.yml index a9bf17e..32206e2 100644 --- a/action.yml +++ b/action.yml @@ -13,6 +13,10 @@ inputs: description: The head ref to checkout. If not provided, the head default branch is used. required: false default: ${{ github.sha }} + skip-checkout: + description: "Disable actions/checkout for head-ref. Useful for when the checkout happens in a previous step and file are modified outside of git through other actions" + required: false + default: 'false' atmos-version: description: The version of atmos to install required: false @@ -52,6 +56,7 @@ runs: node-version: 20 - uses: actions/checkout@v4 + if: ${{ inputs.skip-checkout != 'true' }} with: ref: ${{ inputs.head-ref }} diff --git a/tests/stacks/orgs/test/core/auto/test.yaml b/tests/stacks/orgs/test/core/auto/test.yaml index f7d14bf..84d1bc3 100644 --- a/tests/stacks/orgs/test/core/auto/test.yaml +++ b/tests/stacks/orgs/test/core/auto/test.yaml @@ -7,9 +7,11 @@ vars: components: terraform: test-1: - seed: 6 + vars: + seed: 6 test-2: settings: github: actions_enabled: true - seed: 2 + vars: + seed: 2 diff --git a/tests/stacks/orgs/test/plat/dev/test.yaml b/tests/stacks/orgs/test/plat/dev/test.yaml index 4e6150c..1292fc7 100644 --- a/tests/stacks/orgs/test/plat/dev/test.yaml +++ b/tests/stacks/orgs/test/plat/dev/test.yaml @@ -7,9 +7,11 @@ vars: components: terraform: test-3: - seed: 6 + vars: + seed: 6 test-4: settings: github: actions_enabled: true - seed: 2 + vars: + seed: 2 diff --git a/tests/stacks/orgs/test/plat/sandbox/test.yaml b/tests/stacks/orgs/test/plat/sandbox/test.yaml index 146e349..bd23872 100644 --- a/tests/stacks/orgs/test/plat/sandbox/test.yaml +++ b/tests/stacks/orgs/test/plat/sandbox/test.yaml @@ -10,4 +10,5 @@ components: settings: github: actions_enabled: true - seed: 3 + vars: + seed: 3