-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ci): drop dependency on PackSquash-action-test repository
This dependency is unnecessary, because that repository was focused on testing the action, and to test the action we already have some automated workflows at this repository. For testing in other environments, the new reusable workflow step commands can be directly copied and pasted to an Unix-like shell, which is almost as easy as running `git clone`, but with the added advantage that at least someone (me) will look at and update this commands periodically. While at it, let's update the referenced pack versions to test more up-to-date packs, which are likely to be more representative of end PackSquash usage.
- Loading branch information
1 parent
0514f66
commit 567c0e4
Showing
3 changed files
with
46 additions
and
23 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
.github/workflows/actions/set_up_repo_with_submodules/action.yml
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Set up empty Git repository with public pack submodules | ||
description: Reusable steps to set up a repository with packs in submodules for testing | ||
runs: | ||
using: composite | ||
steps: | ||
# The packs checked out by these steps are distributed to the public | ||
# and, to the best of our knowledge, used in conformance with the | ||
# usage rights given in their licenses, which are, in no particular | ||
# order: | ||
# - CC BY 4.0, | ||
# - CC BY-NC-SA 4.0, | ||
# - Custom licenses. | ||
# Thanks to their authors for making such great packs! | ||
- name: Set up empty Git repository with public pack submodules | ||
shell: sh | ||
run: | | ||
git -c init.defaultBranch=master init | ||
while read -r submodule_info; do | ||
url="${submodule_info%% *}" | ||
name="${submodule_info#* }" | ||
name="${name% *}" | ||
commitish="${submodule_info##* }" | ||
git submodule add "$url" "$name" | ||
git -C "$name" -c advice.detachedHead=false checkout "$commitish" | ||
git add "$name" | ||
done <<'SUBMODULES' | ||
https://github.com/PoeticRainbow/golden-days.git golden-days 1.9.0 | ||
https://github.com/Crackers0106/Programmer-Art-Plus.git Programmer-Art-Plus 8ddc173e274094588f04d1c989a58378fb56b303 | ||
https://github.com/SummerFields/SummerFields.git SummerFields 645be0fc27495117a7decc96fee810ff1ed584ab | ||
SUBMODULES | ||
GIT_AUTHOR_NAME='github-actions[bot]' GIT_AUTHOR_EMAIL='41898282+github-actions[bot]@users.noreply.github.com' \ | ||
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" \ | ||
git commit -m 'Root commit' |
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