Skip to content

Commit

Permalink
fix: not enough history depth at checkout for some actions (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdassonvil authored Jun 18, 2024
1 parent b6fc088 commit 8d40dfe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ecs-deploy-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Validate production version format
if: ${{ inputs.environment == 'production' }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/netlify-deploy-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,17 @@ jobs:
pull-requests: write
statuses: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Validate production version format
if: ${{ inputs.environment == 'production' }}
run: |
echo "Validating that production version has a valid format (must be v{major}.{minor}.{patch})"
echo "${{ inputs.version }}" | grep -P '^v[0-9]+\.[0-9]+\.[0-9]+$'
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure aws credentials
uses: sencrop/github-workflows/actions/configure-aws-credentials@master
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/terraform-plan-ecs-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure aws credentials
uses: sencrop/github-workflows/actions/configure-aws-credentials@master
Expand Down

0 comments on commit 8d40dfe

Please sign in to comment.