diff --git a/.gitea/workflows/pkg-repo-sync.yml b/.gitea/workflows/pkg-repo-sync.yml new file mode 100644 index 00000000..affa0242 --- /dev/null +++ b/.gitea/workflows/pkg-repo-sync.yml @@ -0,0 +1,24 @@ +name: pkg-repo-sync + +on: + schedule: + - cron: "17 */6 * * *" + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: quattro + + - name: Mirror upstream [omarchy] stable into the Gitea Arch registry + env: + PKG_SYNC_TOKEN: ${{ secrets.PKG_SYNC_TOKEN }} + run: | + set -euo pipefail + if ! command -v zstd > /dev/null; then + apt-get update -qq && apt-get install -y -qq zstd + fi + bash packages/sync-omarchy-repo.sh