File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -51,22 +51,30 @@ jobs:
51
51
tags : " codercom/oss-dogfood:${{ steps.docker-tag-name.outputs.tag }},codercom/oss-dogfood:latest"
52
52
cache-from : type=registry,ref=codercom/oss-dogfood:latest
53
53
cache-to : type=inline
54
+
54
55
deploy_template :
55
56
needs : deploy_image
56
57
runs-on : ubuntu-latest
57
58
steps :
58
59
- name : Checkout
59
60
uses : actions/checkout@v3
61
+
60
62
- name : Get short commit SHA
61
63
id : vars
62
64
run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
65
+
66
+ - name : Get Latest Commit Title
67
+ id : message
68
+ run : echo "pr_title==$(git log --format=%s -n 1 ${{ github.sha }})" >> $GITHUB_OUTPUT
69
+
63
70
- name : " Get latest Coder binary from the server"
64
71
run : |
65
72
curl -fsSL "https://dev.coder.com/bin/coder-linux-amd64" -o "./coder"
66
73
chmod +x "./coder"
74
+
67
75
- name : " Push template"
68
76
run : |
69
- ./coder templates push $CODER_TEMPLATE_NAME --directory $CODER_TEMPLATE_DIR --yes --name=$CODER_TEMPLATE_VERSION
77
+ ./coder templates push $CODER_TEMPLATE_NAME --directory $CODER_TEMPLATE_DIR --yes --name=$CODER_TEMPLATE_VERSION --message="$CODER_TEMPLATE_MESSAGE"
70
78
env :
71
79
# Consumed by Coder CLI
72
80
CODER_URL : https://dev.coder.com
75
83
CODER_TEMPLATE_NAME : ${{ secrets.CODER_TEMPLATE_NAME }}
76
84
CODER_TEMPLATE_VERSION : ${{ steps.vars.outputs.sha_short }}
77
85
CODER_TEMPLATE_DIR : ./dogfood
86
+ CODER_TEMPLATE_MESSAGE : ${{ steps.message.outputs.pr_title }}
You can’t perform that action at this time.
0 commit comments