ci: set up covector (#329)

* ci: set up covector

* remove postpublish

* push new tags to mirrors

* fetch tags of current repo in workflow file

* use our fork of create-pull-request action

* fmt

* use org tokens

* simplify string subst

* fmt again
This commit is contained in:
Fabian-Lars
2023-04-25 17:31:33 +02:00
committed by GitHub
parent 9e97a55d85
commit 3fddf476de
21 changed files with 324 additions and 26 deletions
+14
View File
@@ -60,6 +60,9 @@ fi
# : > "$BUILD_BASE/changes.diff"
# Collect tags of current commit
readarray -t COMMIT_TAGS < <(git tag --points-at HEAD)
EXIT=0
while read -r PLUGIN_NAME; do
printf "\n\n\e[7m Mirror: %s \e[0m\n" "$PLUGIN_NAME"
@@ -106,6 +109,17 @@ while read -r PLUGIN_NAME; do
# echo "$BUILD_BASE/changes.diff"
# git show --pretty= --src-prefix="a/$PLUGIN_NAME/" --dst-prefix="b/$PLUGIN_NAME/" >> "$BUILD_BASE/changes.diff"
echo "https://github.com/tauri-apps/tauri-plugin-$PLUGIN_NAME/commit/$(git rev-parse HEAD)"
# Add new tags
for FULL_TAG in "${COMMIT_TAGS[@]}"; do
if [[ "$FULL_TAG" =~ ^"tauri-plugin-$PLUGIN_NAME-" ]]; then
TAG_NAME="${FULL_TAG#"tauri-plugin-$PLUGIN_NAME-"}"
echo "Creating tag $TAG_NAME"
git tag "${TAG_NAME}" -m "${GIT_CLI_COMMIT_MESSAGE}"
git push origin "${TAG_NAME}"
fi
done
echo "Completed $PLUGIN_NAME"
else
echo "::error::Commit of ${PLUGIN_NAME} failed"