jecs-pesde/.forgejo/workflows/sync.yml
2024-11-12 19:14:48 +01:00

42 lines
1.3 KiB
YAML

name: Sync
on:
workflow_dispatch:
schedule:
- cron: "10 0 * * *" # Runs at 00:10 UTC every day
jobs:
sync:
name: Sync
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
run: lune run pull.luau ${{ secrets.githubtoken }}
- 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 }}