Skip to content

Commit d51c334

Browse files
committed
Create remote_release.yml
Create the YML file to allow remote tagging from the open-simulation-interface repo release Signed-off-by: Ahmed Sadek ahmed.sadek@asam.net
1 parent 90f3076 commit d51c334

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

0 commit comments

Comments
 (0)