Skip to content

Commit 04d24c6

Browse files
NeWbY100claude
andcommitted
fix: use remote set-url for submodule tagging to bypass credential manager
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6cccf16 commit 04d24c6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ jobs:
5858
run: |
5959
cd ReScene.Lib
6060
SUBMODULE_SHA=$(git rev-parse HEAD)
61-
echo "Tagging ReScene.Lib commit $SUBMODULE_SHA as v${{ steps.version.outputs.version }}"
62-
git tag "v${{ steps.version.outputs.version }}" "$SUBMODULE_SHA"
63-
git push "https://x-access-token:${LIB_PAT}@github.com/NeWbY100/ReScene.Lib.git" "v${{ steps.version.outputs.version }}"
61+
TAG="v${{ steps.version.outputs.version }}"
62+
echo "Tagging ReScene.Lib commit $SUBMODULE_SHA as $TAG"
63+
git tag "$TAG" "$SUBMODULE_SHA"
64+
git remote set-url origin "https://x-access-token:${LIB_PAT}@github.com/NeWbY100/ReScene.Lib.git"
65+
git push origin "$TAG"
6466
6567
- name: Create GitHub Release
6668
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)