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

add sleep between close and reopen #5320

Merged
merged 1 commit into from
Jun 9, 2023
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
3 changes: 3 additions & 0 deletions .github/workflows/automated-updates-to-sam-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
git push --force origin update_app_templates_hash
gh pr list --repo aws/aws-sam-cli --head update_app_templates_hash --json id --jq length | grep 1 && \
gh pr close update_app_templates_hash --repo aws/aws-sam-cli && \
sleep 2 && \
gh pr reopen update_app_templates_hash --repo aws/aws-sam-cli && \
exit 0 # if there is exisitng pr, close/reopen to re-run checks, then exit
gh pr create --base develop --head update_app_templates_hash --title "feat: update SAM CLI with latest App Templates commit hash" --body "This PR & commit is automatically created from App Templates repo to update the SAM CLI with latest hash of the App Templates." --label "pr/internal"
Expand Down Expand Up @@ -110,6 +111,7 @@ jobs:
git push --force origin update_sam_transform_version
gh pr list --repo aws/aws-sam-cli --head update_sam_transform_version --json id --jq length | grep 1 && \
gh pr close update_sam_transform_version --repo aws/aws-sam-cli && \
sleep 2 && \
gh pr reopen update_sam_transform_version --repo aws/aws-sam-cli && \
exit 0 # if there is exisitng pr, close/reopen to re-run checks, then exit
gh pr create --base develop --head update_sam_transform_version --fill --label "pr/internal"
Expand Down Expand Up @@ -169,6 +171,7 @@ jobs:
git push --force origin update_lambda_builders_version
gh pr list --repo aws/aws-sam-cli --head update_lambda_builders_version --json id --jq length | grep 1 && \
gh pr close update_lambda_builders_version --repo aws/aws-sam-cli && \
sleep 2 && \
gh pr reopen update_lambda_builders_version --repo aws/aws-sam-cli && \
exit 0 # if there is exisitng pr, close/reopen to re-run checks, then exit
gh pr create --base develop --head update_lambda_builders_version --fill --label "pr/internal"
Loading