ci:简化 GitHub Actions 工作流输出

-移除了不必要的输出项,只保留版本号
- 更新了 yq 命令和提交信息中版本号的引用
This commit is contained in:
suyiiyii 2025-01-21 21:46:29 +08:00
parent 5cae75ce26
commit 802e6498c8
Signed by: suyiiyii
GPG Key ID: 044704CB29B8AD85

View File

@ -140,8 +140,7 @@ jobs:
# against the sigstore community Fulcio instance.
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
outputs:
meta: ${{ steps.meta.outputs }}
meta-for-gitea: ${{ steps.meta-for-gitea.outputs }}
version: ${{ steps.meta.outputs.version }}
update-manifest:
runs-on: ubuntu-latest
@ -159,12 +158,12 @@ jobs:
if: github.event_name == 'push'
uses: mikefarah/yq@master
with:
cmd: yq eval '.tag = "${{ needs.build.outputs.meta.outputs.version }}"' -i values.yaml
cmd: yq eval '.tag = "${{ needs.build.outputs.version }}"' -i values.yaml
- name: Git Auto Commit
if: github.event_name == 'push'
uses: stefanzweifel/git-auto-commit-action@v5.0.1
with:
commit_message: "Update deployment image tag to ${{ needs.build.outputs.meta.outputs.version }}"
commit_message: "Update deployment image tag to ${{ needs.build.outputs.version }}"
branch: manifest
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"