Skip to content

Commit b16b6b7

Browse files
Update remote_release.yml
1 parent 2d43f5d commit b16b6b7

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/remote_release.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,24 @@ on:
66

77
jobs:
88
submodule:
9-
name: Create tag
9+
name: Update submodule and create tag
1010
runs-on: Ubuntu-latest
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v3
1414
with:
15-
path: repo
16-
- name: Update with tag
15+
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
16+
17+
- name: Update submodule and push with tag
1718
run: |
18-
cd repo
19+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
20+
git config --local user.name "github-actions[bot]"
1921
git tag ${{ github.event.client_payload.tag }}
20-
git push --atomic origin master ${{ github.event.client_payload.tag }}
21-
22+
23+
- name: GitHub Push
24+
uses: ad-m/github-push-action@v0.6.0
25+
with:
26+
# Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}
27+
github_token: ${{ secrets.MACHINE_USER_PAT }}
28+
# Determines if --tags is used
29+
tags: true

0 commit comments

Comments
 (0)