File tree 1 file changed +11
-5
lines changed 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -57,21 +57,27 @@ jobs:
57
57
steps :
58
58
- name : Checkout
59
59
uses : actions/checkout@v3
60
- - name : Get short commit SHA
61
- id : vars
62
- run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
60
+
63
61
- name : " Get latest Coder binary from the server"
64
62
run : |
65
63
curl -fsSL "https://dev.coder.com/bin/coder-linux-amd64" -o "./coder"
66
64
chmod +x "./coder"
65
+
66
+ - name : Get Latest Commit Title
67
+ id : message
68
+ run : |
69
+ pr_title=$(git log --format=%s -n 1 ${{ github.sha }})
70
+ echo "PR title=$pr_title" >> $GITHUB_OUTPUT
71
+
67
72
- name : " Push template"
68
73
run : |
69
- ./coder templates push $CODER_TEMPLATE_NAME --directory $CODER_TEMPLATE_DIR --yes --name=$CODER_TEMPLATE_VERSION
74
+ ./coder templates push $CODER_TEMPLATE_NAME --directory $CODER_TEMPLATE_DIR --yes --name=$CODER_TEMPLATE_VERSION --message=$CODER_TEMPLATE_MESSAGE
70
75
env :
71
76
# Consumed by Coder CLI
72
77
CODER_URL : https://dev.coder.com
73
78
CODER_SESSION_TOKEN : ${{ secrets.CODER_SESSION_TOKEN }}
74
79
# Template source & details
75
80
CODER_TEMPLATE_NAME : ${{ secrets.CODER_TEMPLATE_NAME }}
76
- CODER_TEMPLATE_VERSION : ${{ steps.vars.outputs.sha_short }}
81
+ CODER_TEMPLATE_VERSION : ${{ github.sha }}
77
82
CODER_TEMPLATE_DIR : ./dogfood
83
+ CODER_TEMPLATE_MESSAGE : ${{ steps.message.output.pr_title }}
You can’t perform that action at this time.
0 commit comments