Skip to content

Commit

Permalink
Merge pull request #47 from larshinueber/feature/automate-workflow
Browse files Browse the repository at this point in the history
Github action to sync tudat-space submodule
  • Loading branch information
DominicDirkx authored Sep 5, 2024
2 parents 18bdfbf + 8f86c91 commit a4e37f6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 26 deletions.
4 changes: 0 additions & 4 deletions .github/sync.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/sync-tudat-space.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Sync tudat-space submodule
on:
push:
branches:
- master
workflow_dispatch:

env:
TARGET_OWNER: tudat-team
TARGET_REPO: tudat-space

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout target repository
uses: actions/checkout@v4
with:
repository: ${{ env.TARGET_OWNER }}/${{ env.TARGET_REPO }}
token: ${{ secrets.GH_PAT }}
ref: develop

- name: Update submodule commit
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update submodule to ${{ github.event.after }}"
22 changes: 0 additions & 22 deletions .github/workflows/sync.yml

This file was deleted.

0 comments on commit a4e37f6

Please sign in to comment.