Skip to content

Commit

Permalink
Merge pull request #2413 from spidernet-io/robot/cherrypick/pr2403/re…
Browse files Browse the repository at this point in the history
…lease-v0.7

Fix ci calling release-chart error
  • Loading branch information
weizhoublue authored Oct 12, 2023
2 parents b18c1a4 + bb5dd3f commit 19069f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/auto-version-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ jobs:
uses: ./.github/workflows/call-release-chart.yaml
with:
ref: ${{ needs.get-tag.outputs.tag }}
submit: true
secrets: inherit

release-doc:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/call-release-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:
ref:
required: true
type: string
submit:
required: true
type: string
workflow_dispatch:
inputs:
ref:
Expand All @@ -31,6 +34,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
ref: ${{ steps.get_original_ref.outputs.ref }}
submit: ${{ steps.get_original_ref.outputs.submit }}
steps:
- name: Get Original Ref
id: get_original_ref
Expand All @@ -39,10 +43,12 @@ jobs:
echo "call by workflow_call"
ver=${{ inputs.ref }}
echo ::set-output name=ref::${ver}
echo ::set-output name=submit::${{ inputs.submit }}
elif ${{ github.event_name == 'workflow_dispatch' }} ; then
echo "call by self workflow_dispatch"
ver=${{ github.event.inputs.ref }}
echo ::set-output name=ref::${ver}
echo ::set-output name=submit::true
else
echo "unexpected event: ${{ github.event_name }}"
exit 1
Expand Down Expand Up @@ -90,6 +96,7 @@ jobs:
update_githubpage:
runs-on: ubuntu-latest
needs: [package_chart, get_ref]
if: ${{ needs.get_ref.outputs.submit == 'true' }}
steps:
- name: Get Base Chart URL
id: get_base_url
Expand Down

0 comments on commit 19069f5

Please sign in to comment.