-
-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (30 loc) · 913 Bytes
/
matlab.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: MATLAB Template
on:
push:
branches:
- main
paths:
- "matlab/main.tf"
- ".github/workflows/matlab.yaml"
workflow_dispatch:
jobs:
deploy_template:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get latest short commit SHA
id: commit_sha
run: echo "sha_short=$(git log -1 --pretty=%h)" >> $GITHUB_OUTPUT
- name: Get commit title
id: commit_title
run: echo "title=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT
- name: update coder template
uses: matifali/update-coder-template@v3
with:
url: ${{ vars.CODER_URL }}
id: "matlab"
dir: "matlab"
name: ${{ steps.commit_sha.outputs.sha_short }}
message: ${{ steps.commit_title.outputs.title }}
coder_session_token: ${{ secrets.CODER_SESSION_TOKEN }}