Skip to content

Commit

Permalink
in release workflow, base commit on upstream main
Browse files Browse the repository at this point in the history
  • Loading branch information
wisp3rwind committed Nov 20, 2024
1 parent 1603dab commit f917a7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,14 @@ jobs:
GIT_USER_EMAIL="$(git log -1 --pretty=format:'%ae')"
cd typst-packages
# Add upstream remote and fetch
git remote add upstream https://github.com/typst/packages.git
git fetch --depth 1 upstream main
git config user.name "${GIT_USER_NAME}"
git config user.email "${GIT_USER_EMAIL}"
git checkout -b "${PKG_NAME}-${PKG_VERSION}"
git checkout --no-track -B "${PKG_NAME}-${PKG_VERSION}" upstream/main
git add .
git commit -m "${PKG_NAME}:${PKG_VERSION}"
git push --force --set-upstream origin "${PKG_NAME}-${PKG_VERSION}"

0 comments on commit f917a7e

Please sign in to comment.