Skip to content

Commit 0a9e502

Browse files
author
libin
committed
vars 8
1 parent bb77b0f commit 0a9e502

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/deploy.example.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ jobs:
7373
EOF
7474
)
7575
76-
curl -o deploy.sh https://raw.githubusercontent.com/jefferyjob/deployments/refs/heads/feature/before_after_func/scripts/deploy.docker.sh
76+
# 部署
77+
deploy_docker_url="https://raw.githubusercontent.com/jefferyjob/deployments/refs/heads/${{ github.ref_name }}/scripts/deploy.docker.sh"
78+
echo "deploy_docker_url: $deploy_docker_url"
79+
curl -o deploy.sh $deploy_docker_url
7780
chmod +x deploy.sh
7881
./deploy.sh key deploy
7982

scripts/deploy.docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ print_env() {
5050
echo " CONTAINER_NAME: $CONTAINER_NAME"
5151
echo " DOCKER_RUN_PARAMS: $DOCKER_RUN_PARAMS"
5252
echo "--------------------------------------------------------------------------"
53-
[[ -n "$BEFORE_FUNC" ]] && echo " BEFORE_FUNC: ******"
54-
[[ -n "$AFTER_FUNC" ]] && echo " AFTER_FUNC: ******"
53+
[[ -n "$BEFORE_FUNC" ]] && echo " BEFORE_FUNC: $BEFORE_FUNC"
54+
[[ -n "$AFTER_FUNC" ]] && echo " AFTER_FUNC: $AFTER_FUNC"
5555
echo "--------------------------------------------------------------------------"
5656
echo " AUTH_METHOD: $AUTH_METHOD"
5757
echo " ACTION: $ACTION"

0 commit comments

Comments
 (0)