|
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/using-workflows/events-that-trigger-workflows |
5 | 5 | on: |
6 | 6 | push: |
7 | 7 | paths: |
|
50 | 50 | steps: |
51 | 51 | - name: Set environment variables |
52 | 52 | run: | |
53 | | - # See: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable |
| 53 | + # See: https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable |
54 | 54 | echo "INSTALL_PATH=${{ runner.temp }}/shellcheck" >> "$GITHUB_ENV" |
55 | 55 |
|
56 | 56 | - name: Checkout repository |
|
77 | 77 | tar --extract --file="${{ steps.download.outputs.name }}" |
78 | 78 | EXTRACTION_FOLDER="$(basename "${{ steps.download.outputs.name }}" "${{ env.SHELLCHECK_RELEASE_ASSET_SUFFIX }}")" |
79 | 79 | # Add installation to PATH: |
80 | | - # See: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#adding-a-system-path |
| 80 | + # See: https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path |
81 | 81 | echo "${{ env.INSTALL_PATH }}/$EXTRACTION_FOLDER" >> "$GITHUB_PATH" |
82 | 82 |
|
83 | 83 | - name: Run ShellCheck |
|
93 | 93 | steps: |
94 | 94 | - name: Set environment variables |
95 | 95 | run: | |
96 | | - # See: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable |
| 96 | + # See: https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable |
97 | 97 | echo "SHFMT_INSTALL_PATH=${{ runner.temp }}/shfmt" >> "$GITHUB_ENV" |
98 | 98 |
|
99 | 99 | - name: Checkout repository |
@@ -121,7 +121,7 @@ jobs: |
121 | 121 | # Standardize binary name |
122 | 122 | mv "${{ env.SHFMT_INSTALL_PATH }}/${{ steps.download.outputs.name }}" "${{ env.SHFMT_INSTALL_PATH }}/shfmt" |
123 | 123 | # Add installation to PATH: |
124 | | - # See: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#adding-a-system-path |
| 124 | + # See: https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path |
125 | 125 | echo "${{ env.SHFMT_INSTALL_PATH }}" >> "$GITHUB_PATH" |
126 | 126 |
|
127 | 127 | - name: Format shell scripts |
|
0 commit comments