generated from pool/new_package
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
name: Sync from GitHub
|
|
on:
|
|
schedule:
|
|
- cron: "0 1 * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: tumbleweed
|
|
steps:
|
|
# actions/checkout cannot do SHA256
|
|
# not using "gitea_server_url" because it contains protocol
|
|
- name: Install prerequisites
|
|
run: |
|
|
zypper in -y make python3-packaging
|
|
- name: Checkout Gitea repo
|
|
run: |
|
|
git init --object-format=sha256
|
|
git remote add origin https://x-access-token:${{ secrets.SYNC_TOKEN }}@src.opensuse.org/${{ gitea.repository }}.git
|
|
|
|
git fetch --depth=1 origin ${{ gitea.ref_name }}
|
|
git checkout ${{ gitea.ref_name }}
|
|
|
|
- name: Synchronize Extension
|
|
run: |
|
|
make
|
|
|
|
- name: Commit changes
|
|
uses: https://src.opensuse.org/actions/stefanzweifel-git-auto-commit-action@v5
|
|
with:
|
|
commit_user_name: Gitea Sync Bot
|
|
commit_author: Gitea Sync Bot <gitea-sync-bot@noreply.src.opensuse.org>
|
|
commit_message: "Synchronize extension [gitea action run]"
|
|
skip_fetch: true
|