@rexezuge/tooling 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rexezuge/tooling",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "src"
27
27
  ],
28
28
  "dependencies": {
29
- "@rexezuge/d1": "1.0.3"
29
+ "@rexezuge/d1": "1.0.5"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "eslint": "^10.0.0",
@@ -20,8 +20,22 @@ runs:
20
20
  - shell: bash
21
21
  run: |
22
22
  attempt=0
23
- max=${{ inputs.max_attempts }}
24
- delay=${{ inputs.delay }}
23
+ max="$RETRY_MAX_ATTEMPTS"
24
+ delay="$RETRY_DELAY"
25
+ case "$max" in ''|*[!0-9]*)
26
+ printf '::error title=Retry Step::max_attempts must be a positive integer\n'
27
+ exit 1
28
+ ;;
29
+ esac
30
+ if [ "$max" -lt 1 ]; then
31
+ printf '::error title=Retry Step::max_attempts must be a positive integer\n'
32
+ exit 1
33
+ fi
34
+ case "$delay" in ''|*[!0-9]*)
35
+ printf '::error title=Retry Step::delay must be a non-negative integer\n'
36
+ exit 1
37
+ ;;
38
+ esac
25
39
  while true; do
26
40
  attempt=$(( attempt + 1 ))
27
41
  printf '::notice title=Retry Step::Attempt %d of %d\n' "$attempt" "$max"
@@ -37,3 +51,5 @@ runs:
37
51
  done
38
52
  env:
39
53
  RETRY_COMMAND: ${{ inputs.command }}
54
+ RETRY_MAX_ATTEMPTS: ${{ inputs.max_attempts }}
55
+ RETRY_DELAY: ${{ inputs.delay }}
@@ -5,7 +5,7 @@ runs:
5
5
  using: composite
6
6
  steps:
7
7
  - name: Install pnpm
8
- uses: pnpm/action-setup@v4
8
+ uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
9
9
 
10
10
  - name: Setup Node.js
11
11
  uses: actions/setup-node@v4