From 46fe1064352f7c886090da2e61b26a60405a56b1 Mon Sep 17 00:00:00 2001 From: trisdoan Date: Tue, 8 Sep 2026 11:47:05 +0700 Subject: [PATCH] fix: pin installed deploy CLI to the invoking action ref Install deploy from the git ref recorded in github.action_ref so that consumers pinning uses: trobz/deploy.py@ get the CLI matching that tag instead of the default branch HEAD. Falls back to unpinned install when action_ref is empty (local path invocation). --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index c8eec51..47ef8fb 100644 --- a/action.yml +++ b/action.yml @@ -100,7 +100,9 @@ runs: - name: Install deploy shell: bash - run: uv tool install "git+https://github.com/trobz/deploy.py.git" + run: | + ref="${{ github.action_ref }}" + uv tool install "git+https://github.com/trobz/deploy.py.git${ref:+@$ref}" - name: Deploy shell: bash