Skip to content

Commit 857a956

Browse files
authored
Added skip checkout input (#35)
* Added skip checkout input * Update test.yaml * Update test.yaml * Update test.yaml
1 parent 5456867 commit 857a956

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ inputs:
1313
description: The head ref to checkout. If not provided, the head default branch is used.
1414
required: false
1515
default: ${{ github.sha }}
16+
skip-checkout:
17+
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"
18+
required: false
19+
default: 'false'
1620
atmos-version:
1721
description: The version of atmos to install
1822
required: false
@@ -52,6 +56,7 @@ runs:
5256
node-version: 20
5357

5458
- uses: actions/checkout@v4
59+
if: ${{ inputs.skip-checkout != 'true' }}
5560
with:
5661
ref: ${{ inputs.head-ref }}
5762

tests/stacks/orgs/test/core/auto/test.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ vars:
77
components:
88
terraform:
99
test-1:
10-
seed: 6
10+
vars:
11+
seed: 6
1112
test-2:
1213
settings:
1314
github:
1415
actions_enabled: true
15-
seed: 2
16+
vars:
17+
seed: 2

tests/stacks/orgs/test/plat/dev/test.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ vars:
77
components:
88
terraform:
99
test-3:
10-
seed: 6
10+
vars:
11+
seed: 6
1112
test-4:
1213
settings:
1314
github:
1415
actions_enabled: true
15-
seed: 2
16+
vars:
17+
seed: 2

tests/stacks/orgs/test/plat/sandbox/test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ components:
1010
settings:
1111
github:
1212
actions_enabled: true
13-
seed: 3
13+
vars:
14+
seed: 3

0 commit comments

Comments
 (0)