-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,7 +158,7 @@ jobs: | |
# Backup current repo, so we can checkout. | ||
mkdir -p /tmp/repo | ||
rsync -av --exclude .git --exclude target ./ /tmp/repo/ | ||
git switch releases || git switch --orphan releases | ||
git fetch origin releases && git switch releases || git switch --orphan releases | ||
find . -mindepth 1 -maxdepth 1 ! -name '.git' -exec rm -rf {} + | ||
# Restore. | ||
rsync -av --ignore-existing /tmp/repo/ . | ||
|
@@ -167,13 +167,15 @@ jobs: | |
git config user.name "Godot-Rust Automation" | ||
git config user.email "[email protected]" | ||
git add . | ||
git commit -m "Repo state for v${{ env.GDEXT_PUBLISHED_VERSION }}." | ||
git commit -m "Repo state for v${{ env.GDEXT_PUBLISHED_VERSION }}" | ||
- name: "Apply #[doc(cfg(...))]" | ||
run: .github/other/apply-doc-cfg.sh --install-sd --rustfmt | ||
# Skip --rustfmt, as it causes weird reformatting of quote! {} statements. | ||
# #[doc(cfg(...))] on the same line is the lesser evil. | ||
run: .github/other/apply-doc-cfg.sh --install-sd | ||
|
||
- name: "Commit post-processed changes" | ||
run: git commit -am "Postprocess docs for v${{ env.GDEXT_PUBLISHED_VERSION }}." | ||
run: git commit -am "Postprocess docs for v${{ env.GDEXT_PUBLISHED_VERSION }}" | ||
|
||
- name: "Push changes" | ||
run: git push origin releases | ||
|