mirror of
https://github.com/matifali/update-coder-template.git
synced 2025-10-14 00:45:58 +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
|
run: echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
- name: Get commit title
|
- name: Get commit title
|
||||||
id: 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
|
- name: Update Coder Template
|
||||||
uses: matifali/update-coder-template@v3
|
uses: matifali/update-coder-template@v3
|
||||||
with:
|
with:
|
||||||
id: "my-template"
|
id: my-template
|
||||||
dir: "my-template"
|
dir: my-template
|
||||||
url: "https://coder.example.com"
|
url: https://coder.example.com
|
||||||
name: "${{ steps.latest_commit.outputs.hash }}"
|
name: ${{ steps.latest_commit.outputs.hash }}
|
||||||
message: "${{ steps.commit_title.outputs.title }}"
|
message: ${{ steps.commit_title.outputs.title }}
|
||||||
coder_session_token: ${{ secrets.CODER_SESSION_TOKEN }}
|
coder_session_token: ${{ secrets.CODER_SESSION_TOKEN }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -84,9 +84,9 @@ Update coder templates automatically
|
||||||
- name: Update Coder Template
|
- name: Update Coder Template
|
||||||
uses: matifali/update-coder-template@v3
|
uses: matifali/update-coder-template@v3
|
||||||
with:
|
with:
|
||||||
id: "my-template"
|
id: my-template
|
||||||
dir: "my-template"
|
dir: my-template
|
||||||
url: "https://coder.example.com"
|
url: https://coder.example.com
|
||||||
activate: "false"
|
activate: false
|
||||||
coder_session_token: ${{ secrets.CODER_SESSION_TOKEN }}
|
coder_session_token: ${{ secrets.CODER_SESSION_TOKEN }}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue