Skip to content

Commit 6cccf16

Browse files
NeWbY100claude
andcommitted
feat: auto-tag ReScene.Lib submodule on release
When a v* tag is pushed, the workflow now also tags the ReScene.Lib submodule commit with the same version. Requires a LIB_PAT repository secret with push access to NeWbY100/ReScene.Lib. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fbdfdc8 commit 6cccf16

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ jobs:
5050
shell: pwsh
5151
run: Compress-Archive -Path publish/* -DestinationPath ReScene.NET-${{ steps.version.outputs.version }}-win-x64.zip
5252

53+
- name: Tag ReScene.Lib submodule
54+
if: env.LIB_PAT != ''
55+
shell: bash
56+
env:
57+
LIB_PAT: ${{ secrets.LIB_PAT }}
58+
run: |
59+
cd ReScene.Lib
60+
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 }}"
64+
5365
- name: Create GitHub Release
5466
uses: softprops/action-gh-release@v2
5567
with:

0 commit comments

Comments
 (0)