Skip to content

Commit 9866664

Browse files
committed
REadme
1 parent 06548fb commit 9866664

File tree

8 files changed

+25
-25
lines changed

8 files changed

+25
-25
lines changed

.github/workflows/basic_uv.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Basic (uv)"
1+
name: Basic (uv)
22

33
on:
44
push:

.github/workflows/cache.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ jobs:
2222
2323
- name: Show dates.txt
2424
run: |
25-
if [[ -f "dates.txt" ]]; then
25+
if [[ -f 'dates.txt' ]]; then
2626
cat dates.txt
2727
else
28-
echo "Initial run. File not found. Creating..."
28+
echo 'Initial run. File not found. Creating...'
2929
touch dates.txt
3030
fi
3131
3232
- name: Add today to top of dates.txt
3333
run: |
34-
date -u "+%Y-%m-%d %H:%M:%S UTC" > today.txt
34+
date -u '+%Y-%m-%d %H:%M:%S UTC' > today.txt
3535
cat today.txt dates.txt | head -n 5 > new_dates.txt
3636
cp new_dates.txt dates.txt
3737

.github/workflows/env_var_pass.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
steps:
1515
- name: Set environment variable (takes effect in subsequent steps)
1616
run: |
17-
echo "FOO=abc" >> "${GITHUB_ENV}"
18-
echo "BAR=123" >> "${GITHUB_ENV}"
19-
echo "No effect in the current step."
17+
echo 'FOO=abc' >> "${GITHUB_ENV}"
18+
echo 'BAR=123' >> "${GITHUB_ENV}"
19+
echo 'No effect in the current step.'
2020
echo "FOO is '${FOO}'"
2121
echo "BAR is '${BAR}'"
2222
@@ -42,7 +42,7 @@ jobs:
4242
id: pass
4343
run: |
4444
# Single-line using echo
45-
echo "GREETING=Hello, World!" >> "${GITHUB_OUTPUT}"
45+
echo 'GREETING=Hello, World!' >> "${GITHUB_OUTPUT}"
4646
4747
# Multi-line using heredoc
4848
{
@@ -62,5 +62,5 @@ jobs:
6262

6363
- name: Show RESPONSE
6464
run: |
65-
echo "RESPONSE is"
65+
echo 'RESPONSE is'
6666
echo '${{ needs.job2.outputs.RESPONSE }}'

.github/workflows/env_var_path.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Add PATH (takes effect in subsequent steps)
1919
run: |
2020
echo "${HOME}/imaginary" >> "${GITHUB_PATH}"
21-
echo "No effect in the current step."
21+
echo 'No effect in the current step.'
2222
echo "PATH is '${PATH}'"
2323
2424
- name: Show updated PATH

.github/workflows/env_var_write.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ jobs:
2525
2626
- name: Overwrite months (takes effect in subsequent steps)
2727
run: |
28-
echo "JAN=01" >> "${GITHUB_ENV}"
29-
echo "FEB=02" >> "${GITHUB_ENV}"
30-
echo "MAR=03" >> "${GITHUB_ENV}"
31-
echo "No effect in the current step."
28+
echo 'JAN=01' >> "${GITHUB_ENV}"
29+
echo 'FEB=02' >> "${GITHUB_ENV}"
30+
echo 'MAR=03' >> "${GITHUB_ENV}"
31+
echo 'No effect in the current step.'
3232
echo "JAN is '${JAN}'"
3333
echo "FEB is '${FEB}'"
3434
echo "MAR is '${MAR}'"
3535
3636
- name: New months (takes effect in subsequent steps)
3737
run: |
38-
echo "APR=04" >> "${GITHUB_ENV}"
39-
echo "MAY=05" >> "${GITHUB_ENV}"
40-
echo "JUN=06" >> "${GITHUB_ENV}"
41-
echo "No effect in the current step."
38+
echo 'APR=04' >> "${GITHUB_ENV}"
39+
echo 'MAY=05' >> "${GITHUB_ENV}"
40+
echo 'JUN=06' >> "${GITHUB_ENV}"
41+
echo 'No effect in the current step.'
4242
echo "APR is '${APR}'"
4343
echo "MAY is '${MAY}'"
4444
echo "JUN is '${JUN}'"

.github/workflows/github_script.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
script: return "Hello, World!"
2121

2222
- name: Get string
23-
run: echo "${{ steps.return-result.outputs.result }}"
23+
run: echo '${{ steps.return-result.outputs.result }}'
2424

2525
- name: Show the first 10 fibonacci numbers
2626
uses: actions/github-script@v7

.github/workflows/homebrew.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@ jobs:
1313

1414
steps:
1515
- name: Check brew
16-
run: which brew || echo "Program not found"
16+
run: which brew || echo 'Program not found.'
1717

1818
- name: Check fortune
19-
run: which fortune || echo "Program not found"
19+
run: which fortune || echo 'Program not found.'
2020

2121
- uses: Homebrew/actions/setup-homebrew@master
2222

2323
- name: Install fortune
2424
run: brew install fortune
2525

2626
- name: Run fortune
27-
run: |
28-
which fortune
29-
fortune
27+
run: fortune

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,11 @@ See the [workflow](.github/workflows/mise.yml).
196196
- [GitHub Actions: Adding a system path](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path)
197197
- [GitHub Actions: Caching dependencies to speed up workflows](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows)
198198
- [GitHub Actions: Events that trigger workflows](https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows)
199+
- [GitHub Actions: Setting an environment variable](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable)
200+
<br/><br/>
201+
- [GitHub Actions: env](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#env)
199202
- [GitHub Actions: jobs.<job_id>.outputs](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idoutputs)
200203
- [GitHub Actions: jobs.<job_id>.strategy.matrix](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix)
201-
- [GitHub Actions: Setting an environment variable](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable)
202204
- [GitHub Actions: Workflow syntax for GitHub Actions](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions)
203205
<br/><br/>
204206
- [actions/cache](https://github.com/actions/cache)

0 commit comments

Comments
 (0)