2024-05-21 21:32:22 +02:00
|
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
|
|
name: Pull upstream commits
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2024-05-22 13:48:28 +02:00
|
|
|
- cron: "0 0 * * *"
|
2024-05-21 21:32:22 +02:00
|
|
|
|
|
|
|
jobs:
|
2024-05-22 10:54:41 +02:00
|
|
|
sync_upstream:
|
2024-05-21 21:32:22 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-05-22 10:54:41 +02:00
|
|
|
- name: Checkout target repo
|
2024-07-20 15:31:21 +02:00
|
|
|
uses: https://code.forgejo.org/actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2024-05-21 21:32:22 +02:00
|
|
|
|
2024-05-22 10:54:41 +02:00
|
|
|
- name: Pull upstream repo
|
2024-05-23 13:00:59 +02:00
|
|
|
uses: https://github.com/aormsby/Fork-Sync-With-Upstream-action@1090e365224fc834e7e1de521c417ded2d6fcb53 # v3.4.1
|
2024-05-22 10:54:41 +02:00
|
|
|
with:
|
|
|
|
target_sync_branch: master
|
|
|
|
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
upstream_sync_branch: master
|
2024-05-24 11:19:05 +02:00
|
|
|
upstream_sync_repo: void-linux/void-packages
|
2024-05-22 10:54:41 +02:00
|
|
|
upstream_repo_access_token: ${{ secrets.API_TOKEN_GITHUB }}
|
2024-05-21 21:32:22 +02:00
|
|
|
|
2024-05-22 10:54:41 +02:00
|
|
|
- name: Print status
|
|
|
|
run: echo ${{ steps.sync.outputs.has_new_commits }}
|