File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77jobs :
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
You can’t perform that action at this time.
0 commit comments