Skip to content

Commit 72080cb

Browse files
committed
Revert shellcheck job version, always fetch configlet, but only once
1 parent e4f2e64 commit 72080cb

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
8888

8989
- name: Run shellcheck
90-
uses: ludeeus/action-shellcheck@master
90+
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # v2.0.0
9191
env:
9292
SHELLCHECK_OPTS: -x -s bash -e SC2001 --norc
9393

bin/add_practice_exercise

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,9 @@ command -v curl >/dev/null 2>&1 || {
3737
exit 1
3838
}
3939

40-
# Check if configlet is already fetched
41-
if [ -e bin/configlet ]; then
42-
message "success" "Configlet found!"
43-
else
44-
message "info" "Fetching configlet"
45-
bin/fetch-configlet
46-
message "success" "Fetched configlet successfully!"
47-
fi
40+
# Build configlet
41+
bin/fetch-configlet
42+
message "success" "Fetched configlet successfully!"
4843

4944
# Check if exercise exists in configlet info or in config.json
5045
check_exercise_existence "$1"
@@ -80,9 +75,6 @@ create_rust_files "$exercise_dir" "$slug" "$has_canonical_data"
8075

8176
# ==================================================
8277

83-
# Build configlet
84-
./bin/fetch-configlet
85-
message "success" "Fetched configlet successfully!"
8678

8779
# Preparing config.json
8880
message "info" "Adding instructions and configuration files..."

0 commit comments

Comments
 (0)