From 78de3429c3429a7812254042c6d2c119d72b3215 Mon Sep 17 00:00:00 2001 From: panicboat Date: Fri, 9 Oct 2026 13:33:36 +0900 Subject: [PATCH] fix: support checking out action ref in composite actions Signed-off-by: panicboat --- label-dispatcher/action.yaml | 5 +++++ label-resolver/action.yaml | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/label-dispatcher/action.yaml b/label-dispatcher/action.yaml index 800c77f..049783c 100644 --- a/label-dispatcher/action.yaml +++ b/label-dispatcher/action.yaml @@ -24,6 +24,10 @@ inputs: description: 'Deploy actions repository to use' required: false default: 'panicboat/deploy-actions' + deploy-actions-ref: + description: 'Ref (branch, tag, or SHA) of deploy-actions to checkout' + required: false + default: '' outputs: labels-added: @@ -46,6 +50,7 @@ runs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: ${{ inputs.deploy-actions-repository }} + ref: ${{ inputs.deploy-actions-ref || github.action_ref }} path: deploy-actions - name: Checkout source repository diff --git a/label-resolver/action.yaml b/label-resolver/action.yaml index d07c7b8..cfacf98 100644 --- a/label-resolver/action.yaml +++ b/label-resolver/action.yaml @@ -23,6 +23,14 @@ inputs: description: 'Path to workflow configuration file' required: false default: 'workflow-config.yaml' + deploy-actions-repository: + description: 'Deploy actions repository to use' + required: false + default: 'panicboat/deploy-actions' + deploy-actions-ref: + description: 'Ref (branch, tag, or SHA) of deploy-actions to checkout' + required: false + default: '' outputs: targets: @@ -41,7 +49,8 @@ runs: - name: Checkout deploy-actions uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - repository: panicboat/deploy-actions + repository: ${{ inputs.deploy-actions-repository }} + ref: ${{ inputs.deploy-actions-ref || github.action_ref }} path: deploy-actions - name: Checkout source repository