mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-13 14:50:48 +08:00
feat: 更新 docker-build-push 工作流中的测试步骤以使用 vars 代替 secrets
This commit is contained in:
@ -33,14 +33,10 @@ outputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: 测试在这里取 secrets
|
- name: 测试在这里取 vars
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ secrets.VALUE_IS_HY }}" == "HY" ]; then
|
echo "vars.DOCKERHUB_USERNAME: ${{ vars.DOCKERHUB_USERNAME }}"
|
||||||
echo "Got secrets VALUE_IS_HY"
|
|
||||||
else
|
|
||||||
echo "No secrets VALUE_IS_HY"
|
|
||||||
fi
|
|
||||||
- name: Check .git folder
|
- name: Check .git folder
|
||||||
id: check-git-folder
|
id: check-git-folder
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Reference in New Issue
Block a user