Skip to content

Commit 47f8d77

Browse files
committed
Fix update-examples workflow
1 parent 07ff016 commit 47f8d77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/update-examples.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ jobs:
2828
- run: pip install -r .github/scripts/requirements.txt
2929
- name: 'Get versions'
3030
run: |
31+
old="${{ inputs.old }}"
3132
new="${{ inputs.new || github.ref_name }}"
3233
echo "NEW_VERSION=$new" | tee -a $GITHUB_ENV
33-
if [[ "${{ inputs.old }}" == "" ]]; then
34+
if [[ "$old" == "" ]]; then
3435
echo "Auto-detecting old version from git tags"
3536
# Get previous version from descending tag list
3637
old="$(git tag --sort=-v:refname | grep -A1 "$new" | tail -1)"

0 commit comments

Comments
 (0)