mirror of
https://github.com/Nostalgica-Reverie/Content-Monorepo.git
synced 2026-05-09 00:24:15 +00:00
36 lines
992 B
YAML
36 lines
992 B
YAML
name: "Core Sync"
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
paths:
|
|
- 'modpacks/lce-core/**/mods/**'
|
|
- 'modpacks/lce-core/**/resourcepacks/**'
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: technocality
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
filter: blob:none
|
|
|
|
- name: Setup Environment
|
|
run: |
|
|
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
|
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
|
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
|
|
|
|
- name: Run CoreSync
|
|
run: |
|
|
export PATH=$PATH:$(go env GOPATH)/bin:$HOME/.cargo/bin
|
|
cargo run --release --manifest-path .actions/coresync/Cargo.toml
|
|
|
|
- name: Commit and Push
|
|
uses: https://github.com/EndBug/add-and-commit@v9
|
|
with:
|
|
author_name: forgejo-actions[bot]
|
|
author_email: omo50@noreply.nostalgica.net
|
|
message: 'actions: auto-update (${{ github.workflow }})' |