set default gatway IDE to PyCharm Professional #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: 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: "deeplearning" | |
dir: "deeplearning" | |
name: ${{ steps.commit_sha.outputs.sha_short }} | |
message: ${{ steps.commit_title.outputs.title }} | |
coder_session_token: ${{ secrets.CODER_SESSION_TOKEN }} |