rework pull-upstream pipeline

This commit is contained in:
Luca Bilke 2024-05-22 10:54:41 +02:00
parent 04bc92c252
commit 61c90e71a1
No known key found for this signature in database
GPG Key ID: B753481DA0B6FA47
1 changed files with 14 additions and 12 deletions

View File

@ -3,24 +3,23 @@ name: Pull upstream commits
on:
schedule:
- cron: "* * * * 6"
- cron: "0 3 * * 7"
jobs:
renovate:
sync_upstream:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
- name: Checkout target repo
uses: https://code.forgejo.org/actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Pull upstream
run: |
git remote add upstream https://github.com/void-linux/void-packages
git \
-c user.name="Johnny5" \
-c user.email="bot@snaile.de" \
pull --rebase=merges upstream master
- name: Pull upstream repo
uses: https://github.com/aormsby/Fork-Sync-With-Upstream-action@3.4.1
with:
target_sync_branch: master
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
upstream_sync_branch: master
upstream_sync_repo: https://github.com/void-linux/void-packages
upstream_repo_access_token: ${{ secrets.API_TOKEN_GITHUB }}
- name: Commit
if: ${{ steps.changed.outputs.all_changed_files != '' }}
@ -30,3 +29,6 @@ jobs:
commit_user_email: "bot@snaile.de"
commit_author: "Johnny5 <bot@snaile.de>"
commit_message: "Pull upstream"
- name: Print status
run: echo ${{ steps.sync.outputs.has_new_commits }}