Skip to content

Commit 6ebe135

Browse files
Create remote_release.yml
1 parent 1687fcf commit 6ebe135

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Remote Tagging
2+
3+
on:
4+
repository_dispatch:
5+
types: [update-tag]
6+
7+
jobs:
8+
submodule:
9+
name: Update submodule and create tag
10+
runs-on: Ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
with:
15+
path: repo
16+
fetch-depth: 0 # test if depth in fetch history is required
17+
- name: Update submodule and push with tag
18+
run: |
19+
git submodule update --recursive --remote
20+
git add .
21+
git commit -m "git submodule updated"
22+
git tag ${{ github.event.client_payload.tag }}
23+
git push --atomic origin master ${{ github.event.client_payload.tag }}
24+
25+

0 commit comments

Comments
 (0)