|
1 | 1 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-shell-task.md
|
2 | 2 | name: Check Shell Scripts
|
3 | 3 |
|
4 |
| -# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows |
| 4 | +# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows |
5 | 5 | on:
|
6 | 6 | push:
|
7 | 7 | paths:
|
|
52 | 52 | steps:
|
53 | 53 | - name: Set environment variables
|
54 | 54 | run: |
|
55 |
| - # See: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable |
| 55 | + # See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable |
56 | 56 | echo "INSTALL_PATH=${{ runner.temp }}/shellcheck" >> "$GITHUB_ENV"
|
57 | 57 |
|
58 | 58 | - name: Checkout repository
|
|
79 | 79 | tar --extract --file="${{ steps.download.outputs.name }}"
|
80 | 80 | EXTRACTION_FOLDER="$(basename "${{ steps.download.outputs.name }}" "${{ env.SHELLCHECK_RELEASE_ASSET_SUFFIX }}")"
|
81 | 81 | # Add installation to PATH:
|
82 |
| - # See: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#adding-a-system-path |
| 82 | + # See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path |
83 | 83 | echo "${{ env.INSTALL_PATH }}/$EXTRACTION_FOLDER" >> "$GITHUB_PATH"
|
84 | 84 |
|
85 | 85 | - name: Run ShellCheck
|
|
97 | 97 | steps:
|
98 | 98 | - name: Set environment variables
|
99 | 99 | run: |
|
100 |
| - # See: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable |
| 100 | + # See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable |
101 | 101 | echo "SHFMT_INSTALL_PATH=${{ runner.temp }}/shfmt" >> "$GITHUB_ENV"
|
102 | 102 |
|
103 | 103 | - name: Checkout repository
|
@@ -125,7 +125,7 @@ jobs:
|
125 | 125 | # Standardize binary name
|
126 | 126 | mv "${{ env.SHFMT_INSTALL_PATH }}/${{ steps.download.outputs.name }}" "${{ env.SHFMT_INSTALL_PATH }}/shfmt"
|
127 | 127 | # Add installation to PATH:
|
128 |
| - # See: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#adding-a-system-path |
| 128 | + # See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path |
129 | 129 | echo "${{ env.SHFMT_INSTALL_PATH }}" >> "$GITHUB_PATH"
|
130 | 130 |
|
131 | 131 | - name: Format shell scripts
|
|
0 commit comments