ci: migrate from GitHub Actions to Gitea Actions
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
name: Update MoonSharp
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
SUBMODULE_PATH: Libraries/moonsharp
|
||||
GIT_USER_EMAIL: "gitea-actions@git.illegalfiles.icu"
|
||||
GIT_USER_NAME: "gitea-actions"
|
||||
|
||||
jobs:
|
||||
update-moonsharp:
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Update submodule
|
||||
run: git submodule update --recursive --remote "$SUBMODULE_PATH"
|
||||
|
||||
- name: Create commit
|
||||
run: |
|
||||
git config user.name "$GIT_USER_NAME"
|
||||
git config user.email "$GIT_USER_EMAIL"
|
||||
git commit -am "Update submodule: $SUBMODULE_PATH"
|
||||
|
||||
- name: Push
|
||||
run: git push
|
||||
Reference in New Issue
Block a user