Skip to content

Commit e892da2

Browse files
authored
chore: add git checkout to workflows (#33539)
### Issue # (if applicable) n/a ### Reason for this change fix workflows failing with `error: failed to push some refs to 'https://github.com/aws/aws-cdk'` ### Description of changes add `git checkout` to exit detached HEAD state before committing/pushing ### Describe any new or updated permissions being added n/a ### Description of how you validated changes Validated previously and confirmed workflow succeeded ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent eab2918 commit e892da2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/analytics-metadata-updater.yml

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
exit 1
5656
fi
5757
58+
git checkout -B ${{ github.event.pull_request.head.ref }}
5859
git add .
5960
git commit -m "chore: update analytics metadata blueprints"
6061
git push origin ${{ github.event.pull_request.head.ref }}

.github/workflows/lambda-runtime-tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
exit 1
5353
fi
5454
55+
git checkout -B ${{ github.event.pull_request.head.ref }}
5556
git add .
5657
git commit -m "chore: update lambda runtime integration tests"
5758
git push origin ${{ github.event.pull_request.head.ref }}

0 commit comments

Comments
 (0)