Skip to content

Commit c84a453

Browse files
committed
ci: add workflow to sync with upstream daily
This workflow runs the following steps daily: * Pull tags from upstream; * Rebase the default branch onto the latest tag for the current Fedora version; * Push the changes to the default branch, including tags. If the rebase encounters conflicts, the job will abort and conflicts will need to be resolved manually. Signed-off-by: Daniel Hast <hast.daniel@protonmail.com>
1 parent 00efe05 commit c84a453

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/upstream-sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Checkout repository
3131
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3232
with:
33-
persist-credentials: true
33+
persist-credentials: true # zizmor: ignore[artipacked]
3434
fetch-depth: 0
3535

3636
- name: Pull tags from upstream and rebase
@@ -39,7 +39,7 @@ jobs:
3939
FEDORA_VERSION: 42
4040
run: |
4141
git remote add 'upstream' 'https://github.com/fedora-selinux/selinux-policy.git'
42-
git fetch --tags upstream
42+
git fetch --tags 'upstream'
4343
latest_tag=$(git tag -l "v${FEDORA_VERSION}.*" --sort='-creatordate' | head -n1)
4444
git rebase "${latest_tag}"
4545
git push --follow-tags --force-with-lease

0 commit comments

Comments
 (0)