Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/npm-development-1bf2…
Browse files Browse the repository at this point in the history
…4007dd
  • Loading branch information
chriswblake authored Jan 15, 2025
2 parents 1d5cebb + 50f8fdc commit 04d4480
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"jest.enable": true
}
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Action output. As such it can easily be referenced in subsequent steps.
steps:
- name: Build comment using template
id: build-comment
uses: chriswblake/action-text-variables@v1
uses: skills/action-text-variables@v1
with:
template-text: 'Hello {{ login }}, nice to meet you!'
template-vars: '{"login": "${{ github.actor }}" }'
Expand All @@ -53,7 +53,7 @@ steps:
steps:
- name: Build comment using template
id: build-comment
uses: chriswblake/action-text-variables@v1
uses: skills/action-text-variables@v1
with:
template-text: 'Hello {{ login }}, nice to meet you!'
template-vars: |
Expand All @@ -72,7 +72,7 @@ steps:

- name: Build comment using template
id: build-comment
uses: chriswblake/action-text-variables@v1
uses: skills/action-text-variables@v1
with:
template-file: my-files/my-template.md
template-vars: '{ "login": "${{ github.actor }}" }'
Expand All @@ -89,17 +89,17 @@ steps:
- name: Get templates from another repository
uses: actions/checkout@v4
with:
repository: chriswblake/feedback-templates
path: feedback-templates
repository: skills/response-templates
path: response-templates

- name: Show available templates
run: ls -R feedback-templates
run: ls -R response-templates

- name: Build comment using template
id: build-comment
uses: chriswblake/action-text-variables@v1
uses: skills/action-text-variables@v1
with:
template-file: feedback-templates/skill-step-feedback/lesson-finished.md
template-file: response-templates/step-feedback/lesson-finished.md
template-vars: '{
"login": "${{ github.actor }}",
"repo_full_name": "${{ github.repository }}"
Expand Down
4 changes: 2 additions & 2 deletions examples/direct-text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- name: Build comment using template
id: build-comment
uses: chriswblake/action-text-variables@v1
uses: skills/action-text-variables@v1
with:
template-text: 'Hello {{ login }}, nice to meet you! Have you met my friend {{ friend }}?'
template-vars: '{
Expand All @@ -34,7 +34,7 @@ jobs:

- name: Build comment using template
id: build-comment
uses: chriswblake/action-text-variables@v1
uses: skills/action-text-variables@v1
with:
template-text: 'Hello {{ login }}, nice to meet you! Have you met my friend {{ friend }}?'
template-vars: |
Expand Down
10 changes: 5 additions & 5 deletions examples/template-from-other-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
- name: Get templates from another repository
uses: actions/checkout@v4
with:
repository: chriswblake/feedback-templates
path: feedback-templates
repository: skills/response-templates
path: response-templates

- name: Show available templates
run: ls -R feedback-templates
run: ls -R response-templates

- name: Build comment using template
id: build-comment
uses: chriswblake/action-text-variables@v1
uses: skills/action-text-variables@v1
with:
template-file: feedback-templates/skill-step-feedback/lesson-finished.md
template-file: response-templates/step-feedback/lesson-finished.md
template-vars: '{
"login": "${{ github.actor }}",
"repo_full_name": "${{ github.repository }}"
Expand Down
2 changes: 1 addition & 1 deletion examples/template-from-same-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: Build comment using template
id: build-comment
uses: chriswblake/action-text-variables@v1
uses: skills/action-text-variables@v1
with:
template-file: examples/hello.md
template-vars: '{"login": "${{ github.actor }}" }'
Expand Down

0 comments on commit 04d4480

Please sign in to comment.