Skip to content

LKL-2162 Add setup-uv self-updating action#1

Merged
mkirkeng-leukeleu merged 3 commits into
mainfrom
LKL-2162-add-setup-uv-self-updating-action
Aug 8, 2025
Merged

LKL-2162 Add setup-uv self-updating action#1
mkirkeng-leukeleu merged 3 commits into
mainfrom
LKL-2162-add-setup-uv-self-updating-action

Conversation

@mkirkeng-leukeleu
Copy link
Copy Markdown
Member

@mkirkeng-leukeleu mkirkeng-leukeleu commented Jul 4, 2025

Added workflow to sync this fork with the upstream repo once per day. This also pulls in all tags so we can use this action like any other: uses: leukeleu/setup-uv@v6.

We will need a PAT in the repository secrets (called SYNC_FORK_TOKEN for now) with read/write permissions for the contents of this repo and read/write for workflows as well (because workflows might be updated on the upstream repo and when we pull those in they will be changed here as well).

Edit: I did also test dependabot and it will happily open PRs to update the version of our forked action.

Comment thread .github/workflows/sync-fork.yml Outdated
@153957
Copy link
Copy Markdown

153957 commented Aug 7, 2025

🤔 If we merge this this action will run, but wont it then automatically remove itself? Perhaps I am missing how this is prevented? Should it sync and then rebase the commit which adds this action on the top?
Since these commits do not exist on the remote they would be removed when updating the sync (or the update would be blocked since it would be considered force pushing).

@153957 153957 self-requested a review August 7, 2025 08:52
@mkirkeng-leukeleu
Copy link
Copy Markdown
Member Author

🤔 If we merge this this action will run, but wont it then automatically remove itself? Perhaps I am missing how this is prevented? Should it sync and then rebase the commit which adds this action on the top? Since these commits do not exist on the remote they would be removed when updating the sync (or the update would be blocked since it would be considered force pushing).

Since we really only care about tags (that's what we refer to in other repos and what will be used to actually run the action there) this action only fetches tags and pushes those but doesn't actually update the main branch in this repo.

Comment thread .github/workflows/sync-fork.yml Outdated
Co-authored-by: Arne de Laat <arne@delaat.net>
@mkirkeng-leukeleu mkirkeng-leukeleu merged commit 88a2163 into main Aug 8, 2025
42 of 52 checks passed
@153957 153957 deleted the LKL-2162-add-setup-uv-self-updating-action branch August 11, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants