mirror of
https://github.com/matifali/update-coder-template.git
synced 2025-10-13 16:35:47 +08:00
format README.md
This commit is contained in:
parent
ccc49c4662
commit
d00ad332ed
1 changed files with 34 additions and 34 deletions
|
@ -43,15 +43,16 @@ Update coder templates automatically
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Get latest commit hash
|
- name: Get latest commit hash
|
||||||
id: latest_commit
|
id: latest_commit
|
||||||
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=%s)" >> $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:
|
||||||
|
@ -62,7 +63,6 @@ Update coder templates automatically
|
||||||
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 }}
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Update a Coder template with a random version name without activating.
|
2. Update a Coder template with a random version name without activating.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
@ -78,7 +78,7 @@ Update coder templates automatically
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Update Coder Template
|
- name: Update Coder Template
|
||||||
uses: matifali/update-coder-template@v3
|
uses: matifali/update-coder-template@v3
|
||||||
|
|
Loading…
Add table
Reference in a new issue