Skip to content

Commit

Permalink
Added skip checkout input (#35)
Browse files Browse the repository at this point in the history
* Added skip checkout input

* Update test.yaml

* Update test.yaml

* Update test.yaml
  • Loading branch information
goruha authored Dec 2, 2024
1 parent 5456867 commit 857a956
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -52,6 +56,7 @@ runs:
node-version: 20

- uses: actions/checkout@v4
if: ${{ inputs.skip-checkout != 'true' }}
with:
ref: ${{ inputs.head-ref }}

Expand Down
6 changes: 4 additions & 2 deletions tests/stacks/orgs/test/core/auto/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 4 additions & 2 deletions tests/stacks/orgs/test/plat/dev/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion tests/stacks/orgs/test/plat/sandbox/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ components:
settings:
github:
actions_enabled: true
seed: 3
vars:
seed: 3

0 comments on commit 857a956

Please sign in to comment.