Skip to content
Merged
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
30 changes: 30 additions & 0 deletions .github/workflows/automated-updates-to-sam-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ jobs:
if: github.repository == 'aws/aws-sam-cli'
runs-on: ubuntu-latest
steps:
- name: Check if PR already exists
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_COUNT=$(gh pr list --repo aws/aws-sam-cli --head update_app_templates_hash --json id --jq length)
if [ "$PR_COUNT" -ge 1 ]; then
echo "PR already exists for update_app_templates_hash, skipping workflow"
exit 1
fi

- name: Checkout App Templates
uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -58,6 +68,16 @@ jobs:
if: github.repository == 'aws/aws-sam-cli'
runs-on: ubuntu-latest
steps:
- name: Check if PR already exists
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_COUNT=$(gh pr list --repo aws/aws-sam-cli --head update_sam_transform_version --json id --jq length)
if [ "$PR_COUNT" -ge 1 ]; then
echo "PR already exists for update_sam_transform_version, skipping workflow"
exit 1
fi

- name: Checkout SAM
uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -117,6 +137,16 @@ jobs:
if: github.repository == 'aws/aws-sam-cli'
runs-on: ubuntu-latest
steps:
- name: Check if PR already exists
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_COUNT=$(gh pr list --repo aws/aws-sam-cli --head update_lambda_builders_version --json id --jq length)
if [ "$PR_COUNT" -ge 1 ]; then
echo "PR already exists for update_lambda_builders_version, skipping workflow"
exit 1
fi

- name: Checkout Lambda Builders
uses: actions/checkout@v6
with:
Expand Down
Loading