Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added skip checkout input #35

Merged
merged 4 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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