From d3e596789cf11684a0da8d813ef458fd2945b4bb Mon Sep 17 00:00:00 2001 From: Yifei Sun Date: Mon, 1 Jun 2026 16:20:14 +0200 Subject: [PATCH] ci: automated setup for atelier and dependabot changes --- .github/dependabot.yaml | 30 ++++++++++++++++++++++++++++++ .github/workflows/ci.yaml | 16 ++++++++++++++++ .github/workflows/merge.yaml | 33 +++++++++++++++++++++++++++++++++ atelier.toml | 2 ++ readme.md | 5 +++++ 5 files changed, 86 insertions(+) create mode 100644 .github/dependabot.yaml create mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/merge.yaml create mode 100644 atelier.toml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..a513bf0 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,30 @@ +version: 2 + +updates: + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: weekly + day: saturday + time: "03:00" + timezone: "Etc/UTC" + commit-message: + prefix: "ci" + groups: + actions: + patterns: + - "*" + + - package-ecosystem: nix + directory: "/" + schedule: + interval: weekly + day: saturday + time: "03:00" + timezone: "Etc/UTC" + commit-message: + prefix: "flake" + groups: + inputs: + patterns: + - "*" diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..adbff9a --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,16 @@ +name: CI +on: + push: + branches: [master] + pull_request: + workflow_dispatch: + +permissions: + contents: read + checks: write + id-token: write + +jobs: + Atelier: + uses: stepbrobd/atelier/.github/workflows/discover.yaml@master + secrets: inherit diff --git a/.github/workflows/merge.yaml b/.github/workflows/merge.yaml new file mode 100644 index 0000000..f55b145 --- /dev/null +++ b/.github/workflows/merge.yaml @@ -0,0 +1,33 @@ +name: Merge + +on: + schedule: + - cron: "0 6 * * 6" + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + Merge: + runs-on: ubuntu-latest + steps: + - name: Merge + env: + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} + run: | + set -euo pipefail + + { + gh pr list --author "app/github-actions" --state open --json number --jq '.[].number' + gh pr list --author "app/dependabot" --state open --json number --jq '.[].number' + } | sort -u | while read -r pr; do + if gh pr checks "$pr" 2>/dev/null; then + echo "All checks passed for PR #${pr}, merging." + gh pr merge "$pr" --rebase --delete-branch || true + else + echo "PR #${pr} has pending or failed checks, skipping." + fi + done diff --git a/atelier.toml b/atelier.toml new file mode 100644 index 0000000..5d9dc71 --- /dev/null +++ b/atelier.toml @@ -0,0 +1,2 @@ +systems = ["x86_64-linux", "aarch64-linux", "aarch64-darwin"] +substituters = ["https://cache.ysun.co"] diff --git a/readme.md b/readme.md index 6cc2929..9569401 100644 --- a/readme.md +++ b/readme.md @@ -1,5 +1,10 @@ # osync! +Binary Cache: + +- Cache: +- Key: `cache.ysun.co-1:WxPYwT5g3kt9XhUhHPpNLZKI9HIOsVVAuqSHpok8Qt4=` + Sync osu! lazer state between machines. It reads the realm database and `game.ini`, shows differences, and transfers what is missing. -- knotmirror 0.0.1