Skip to content

Commit 113f347

Browse files
committed
fix auto-patch-upstream.yml
1 parent f622b11 commit 113f347

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/auto-patch-upstream.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ jobs:
100100
print ""
101101
}1' "${NODE_FILE}" > tmp && mv tmp "${NODE_FILE}"
102102
103-
# 4. Remove .github/ so push doesn't require workflows permission
104-
rm -rf .github/
103+
# 4. Remove .github/ contents except release.yml so push doesn't require workflows permission
104+
find .github/ -type f ! -name 'release.yml' -delete
105+
find .github/ -type d -empty -delete
105106
106107
# 5. Commit, tag, push
107108
git add -A

0 commit comments

Comments
 (0)