From e9d3e50f38460a364d76e9181ea1ae61b7635634 Mon Sep 17 00:00:00 2001 From: "weizhou.lan@daocloud.io" Date: Tue, 5 Apr 2022 17:06:38 +0800 Subject: [PATCH] v Signed-off-by: weizhou.lan@daocloud.io --- .github/workflows/debug-workflow-call.yaml | 2 +- .github/workflows/lint-golang.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/debug-workflow-call.yaml b/.github/workflows/debug-workflow-call.yaml index 79cca1fe..36a4abc1 100644 --- a/.github/workflows/debug-workflow-call.yaml +++ b/.github/workflows/debug-workflow-call.yaml @@ -19,7 +19,7 @@ jobs: # forbid to specify version for local workflow, GITHUB_REF Same as the caller workflow uses: ./.github/workflows/lint-golang.yaml with: - sha: ${{ github.event.inputs.ref }} + ref: ${{ github.event.inputs.ref }} # #=============== # call-workflow-chart: diff --git a/.github/workflows/lint-golang.yaml b/.github/workflows/lint-golang.yaml index 518ede1d..0222efba 100644 --- a/.github/workflows/lint-golang.yaml +++ b/.github/workflows/lint-golang.yaml @@ -19,7 +19,7 @@ on: default: main workflow_call: inputs: - sha: + ref: required: true type: string @@ -67,10 +67,10 @@ jobs: echo "::set-output name=check::${flag}" ref=${{ github.event.pull_request.head.sha }} echo "::set-output name=ref::${ref}" - elif ${{ inputs.sha != '' }} ; then + elif ${{ inputs.ref != '' }} ; then echo "trigger by workflow_call" echo "::set-output name=check::true" - echo "::set-output name=ref::${{ inputs.sha }}" + echo "::set-output name=ref::${{ inputs.ref }}" elif ${{ github.event_name == 'workflow_dispatch' }} ; then echo "trigger by workflow_dispatch" echo "::set-output name=check::true"