File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Remote Tagging
2+
3+ on :
4+ repository_dispatch :
5+ types : [update-tag]
6+
7+ permissions :
8+ contents : write
9+ repository-projects : write
10+
11+ jobs :
12+ submodule :
13+ name : Update submodule and create tag
14+ runs-on : Ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v3
18+ with :
19+ fetch-depth : 0 # otherwise, there would be errors pushing refs to the destination repository.
20+
21+ - name : Create tag
22+ run : git tag ${{ github.event.client_payload.tag }}
23+
24+ - name : GitHub Push
25+ uses : ad-m/github-push-action@v0.6.0
26+ with :
27+ # Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}
28+ github_token : ${{ secrets.MACHINE_USER_PAT }}
29+ # Determines if --tags is used
30+ tags : true
You can’t perform that action at this time.
0 commit comments