Skip to content

Bump actions/checkout from 3 to 4 (#37) #40

Bump actions/checkout from 3 to 4 (#37)

Bump actions/checkout from 3 to 4 (#37) #40

Workflow file for this run

# An action to push templates to coder server
name: Deeplearning
on:
push:
branches:
- main
paths:
- "deeplearning/main.tf"
- ".github/workflows/deeplearning.yaml"
workflow_dispatch:
jobs:
deploy_template:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get latest short commit SHA
id: get_commit_sha
run: echo ::set-output name=sha_short::$(git rev-parse --short HEAD)
- name: update coder template
uses: matifali/update-coder-template@v2
with:
CODER_URL: ${{ vars.CODER_URL }}
CODER_TEMPLATE_NAME: "deeplearning"
CODER_TEMPLATE_DIR: "deeplearning"
CODER_TEMPLATE_VERSION: ${{ steps.get_commit_sha.outputs.sha_short }}
CODER_SESSION_TOKEN: ${{ secrets.CODER_SESSION_TOKEN }}