mirror of
https://github.com/matifali/update-coder-template.git
synced 2025-10-13 16:35:47 +08:00
parent
814d58e4cd
commit
5a254fcb96
1 changed files with 10 additions and 10 deletions
20
README.md
20
README.md
|
@ -50,17 +50,17 @@ Update coder templates automatically
|
|||
run: echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
- name: Get commit title
|
||||
id: commit_title
|
||||
run: echo "title=$(git log -1 --pretty=%B)" >> $GITHUB_OUTPUT
|
||||
run: echo "title=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT
|
||||
|
||||
|
||||
- name: Update Coder Template
|
||||
uses: matifali/update-coder-template@v3
|
||||
with:
|
||||
id: "my-template"
|
||||
dir: "my-template"
|
||||
url: "https://coder.example.com"
|
||||
name: "${{ steps.latest_commit.outputs.hash }}"
|
||||
message: "${{ steps.commit_title.outputs.title }}"
|
||||
id: my-template
|
||||
dir: my-template
|
||||
url: https://coder.example.com
|
||||
name: ${{ steps.latest_commit.outputs.hash }}
|
||||
message: ${{ steps.commit_title.outputs.title }}
|
||||
coder_session_token: ${{ secrets.CODER_SESSION_TOKEN }}
|
||||
```
|
||||
|
||||
|
@ -84,9 +84,9 @@ Update coder templates automatically
|
|||
- name: Update Coder Template
|
||||
uses: matifali/update-coder-template@v3
|
||||
with:
|
||||
id: "my-template"
|
||||
dir: "my-template"
|
||||
url: "https://coder.example.com"
|
||||
activate: "false"
|
||||
id: my-template
|
||||
dir: my-template
|
||||
url: https://coder.example.com
|
||||
activate: false
|
||||
coder_session_token: ${{ secrets.CODER_SESSION_TOKEN }}
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue