2024-11-12 18:59:29 +01:00
|
|
|
name: Sync
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: "10 0 * * *" # Runs at 00:10 UTC every day
|
|
|
|
|
|
|
|
jobs:
|
2024-11-12 19:14:48 +01:00
|
|
|
sync:
|
|
|
|
name: Sync
|
2024-11-12 18:59:29 +01:00
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: ghcr.io/catthehacker/ubuntu:act-22.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Install Rokit
|
|
|
|
uses: https://github.com/CompeyDev/setup-rokit@v0.1.2
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.githubtoken }}
|
|
|
|
|
|
|
|
- name: Pull Newest Jecs
|
2024-11-12 19:08:52 +01:00
|
|
|
run: lune run pull.luau ${{ secrets.githubtoken }}
|
2024-11-12 18:59:29 +01:00
|
|
|
|
|
|
|
- name: Read Jecs Version
|
|
|
|
id: read_jecs_version
|
|
|
|
run: |
|
|
|
|
version=$(lune run read_version | tr '\n' ' ')
|
|
|
|
echo "JECS_VERSION=$version" >> $GITHUB_OUTPUT
|
|
|
|
|
|
|
|
- name: Create Pull Request
|
|
|
|
uses: https://github.com/peter-evans/create-pull-request@v7
|
|
|
|
with:
|
|
|
|
title: Sync to upstream Jecs ${{ steps.read_jecs_version.outputs.JECS_VERSION }}
|
|
|
|
body: |
|
|
|
|
Sync to upstream Jecs ${{ steps.read_jecs_version.outputs.JECS_VERSION }}
|
|
|
|
- This pull request is **auto-generated**
|
|
|
|
branch: auto/update-jecs
|
|
|
|
commit-message: Sync to upstream Jecs ${{ steps.read_jecs_version.outputs.JECS_VERSION }}
|
|
|
|
base: main
|
|
|
|
token: ${{ secrets.privileged_forgejo_token }}
|