Skip to content

Commit 3e48aad

Browse files
committed
Small change to the formatting of the action file
1 parent 705c4ed commit 3e48aad

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ jobs:
216216
config: ./memory_statistics_config.json
217217
output: ./size_table_new.html
218218
check_against: ./size_table_expected.html
219+
219220
test-link-verifier:
220221
runs-on: ubuntu-latest
221222
steps:
@@ -253,7 +254,6 @@ jobs:
253254
with:
254255
path: ./
255256
exclude-dirs: complexity, formatting
256-
allowlist-file: badUrls.md
257257

258258
- env:
259259
stepName: Check Failure Test Case

link-verifier/action.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ runs:
4343
shell: bash
4444
run: |
4545
# ${{ env.stepName }}
46-
echo -e "::group::${{ env.stepName }}"
46+
echo -e "::group::${{ env.bashInfo }} ${{ env.stepName }} ${{ env.bashEnd }}"
4747
4848
wget https://github.com/jgm/pandoc/releases/download/2.11/pandoc-2.11-1-amd64.deb -O pandoc.deb
4949
sudo dpkg -i pandoc.deb
@@ -72,28 +72,31 @@ runs:
7272
bashInfo: \033[33;1mINFO -
7373
bashFail: \033[31;1mFAILED -
7474
bashEnd: \033[0m
75-
stepName: Run link verifier script
75+
stepName: Check Links in Files
7676
name: ${{ env.stepName }}
7777
working-directory: ${{ inputs.path }}
7878
shell: bash
7979
run: |
8080
# ${{ env.stepName }}
81-
echo -e "::group::${{ env.stepName }}"
81+
echo -e "::group::${{ env.bashInfo }} ${{ env.stepName }} ${{ env.bashEnd }}"
8282
args="--test-markdown"
8383
if [ -n "${{ inputs.exclude-dirs }}" ]; then
8484
dirs="${{ inputs.exclude-dirs }}"
8585
dirs="${dirs//,/ }"
8686
args+=" --exclude-dirs ${dirs}"
8787
fi
88+
8889
if [ -n "${{ inputs.include-file-types }}" ]; then
8990
file_types="${{ inputs.include-file-types }}"
9091
file_types="${file_types//,/ }"
9192
args+=" --include-file-types ${file_types}"
9293
fi
94+
9395
if [ -n "${{ inputs.allowlist-file }}" ]; then
9496
touch allowList.txt
9597
cat ${{ inputs.allowlist-file }} >> allowList.txt
9698
fi
99+
97100
if [[ "${{ inputs.exclude-urls }}" != "" ]]; then
98101
touch allowList.txt
99102
exclude_urls="${{ inputs.exclude-urls }}"
@@ -105,13 +108,13 @@ runs:
105108
args+=" --allowlist-file allowList.txt"
106109
fi
107110
108-
echo -e "${{ env.bashInfo }} Running verify-links.py ${args} --user-agent \"${{ inputs.user-agent }}\" ${{ env.bashEnd }}"
111+
echo -e "${{ env.bashInfo }} Running: verify-links.py ${args} --user-agent \"${{ inputs.user-agent }}\" ${{ env.bashEnd }}"
109112
set +e
110113
python3 ${GITHUB_ACTION_PATH}/verify-links.py ${args} --user-agent "${{ inputs.user-agent }}";
111114
exitStatus=$?
112115
set -e
116+
113117
echo -e "::endgroup::"
114-
# We check the backwards condition for this one
115118
if [ $exitStatus -eq 1 ]; then
116119
echo -e "${{ env.bashFail }} ${{ env.stepName }} ${{ env.bashEnd }}"
117120
else

0 commit comments

Comments
 (0)