Skip to content
Merged

v #290

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/debug-workflow-call.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint-golang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
default: main
workflow_call:
inputs:
sha:
ref:
required: true
type: string

Expand Down Expand Up @@ -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"
Expand Down