Skip to content

Commit

Permalink
🌱 Update github action for release
Browse files Browse the repository at this point in the history
Signed-off-by: zhujian <[email protected]>
  • Loading branch information
zhujian7 committed Oct 17, 2023
1 parent 76b8c74 commit 6cb3c9d
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
release:
name: release
runs-on: ubuntu-latest
needs: [ env, image-manifest ]
# needs: [ env, image-manifest ]
steps:
- name: checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -123,25 +123,25 @@ jobs:
release/*.tgz
draft: true
generate_release_notes: true
- name: submit charts to OCM chart repo
uses: actions/github-script@v6
with:
github-token: ${{ secrets.OCM_BOT_PAT }}
script: |
try {
const result = await github.rest.actions.createWorkflowDispatch({
owner: 'open-cluster-management-io',
repo: 'helm-charts',
workflow_id: 'download-chart.yml',
ref: 'main',
inputs: {
repo: "${{ github.repository }}",
version: "${{ needs.env.outputs.TRIMED_RELEASE_VERSION }}",
"chart-name": "${{ env.CHART_NAME }}",
},
})
console.log(result);
} catch(error) {
console.error(error);
core.setFailed(error);
}
# - name: submit charts to OCM chart repo
# uses: actions/github-script@v6
# with:
# github-token: ${{ secrets.OCM_BOT_PAT }}
# script: |
# try {
# const result = await github.rest.actions.createWorkflowDispatch({
# owner: 'open-cluster-management-io',
# repo: 'helm-charts',
# workflow_id: 'download-chart.yml',
# ref: 'main',
# inputs: {
# repo: "${{ github.repository }}",
# version: "${{ needs.env.outputs.TRIMED_RELEASE_VERSION }}",
# "chart-name": "${{ env.CHART_NAME }}",
# },
# })
# console.log(result);
# } catch(error) {
# console.error(error);
# core.setFailed(error);
# }

0 comments on commit 6cb3c9d

Please sign in to comment.