Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/remote_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Remote Tagging

on:
repository_dispatch:
types: [update-tag]

permissions:
contents: write
repository-projects: write

jobs:
submodule:
name: Update submodule and create tag
runs-on: Ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.

- name: Update submodule
run: |
git submodule init
git submodule update --recursive --remote
cd open-simulation-interface
git checkout ${{ github.event.client_payload.tag }}
cd ..
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add open-simulation-interface
git commit -m "OSI submodule updated"
continue-on-error: true

- name: Create tag
run: git tag ${{ github.event.client_payload.tag }}

- name: GitHub Push
uses: ad-m/github-push-action@v0.6.0
with:
# Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.MACHINE_USER_PAT }}
# Determines if --tags is used
tags: true
force: true