Skip to content

Commit aa6964d

Browse files
msyycCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent ce1afd8 commit aa6964d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/typespec-python-regenerate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ jobs:
153153
TARGET_BRANCH="typespec-python-generated-tests"
154154
TEMPLATE_PATH="$TARGET/template/README.md"
155155
TEMPLATE="$(mktemp)"
156+
trap 'rm -f "$TEMPLATE"' EXIT
156157
if ! git fetch --no-tags --depth=1 origin "$TARGET_BRANCH" 2>/dev/null \
157158
|| ! git show "FETCH_HEAD:$TEMPLATE_PATH" > "$TEMPLATE" 2>/dev/null; then
158159
echo "::error::Template README not found at $TEMPLATE_PATH on branch $TARGET_BRANCH"

0 commit comments

Comments
 (0)