Skip to content

Commit

Permalink
bug: fix label issues, remove file input
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-nelson committed Jun 26, 2024
1 parent 18b6f1a commit e54ef8f
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/update-linkspector-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
- name: Compare versions and determine bump type
id: compare_versions
run: |

Check warning on line 30 in .github/workflows/update-linkspector-version.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/update-linkspector-version.yml#L30

shellcheck reported issue in this script: SC2086:info:4:22: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/update-linkspector-version.yml:30:9: shellcheck reported issue in this script: SC2086:info:4:22: Double quote to prevent globbing and word splitting [shellcheck]

Check warning on line 30 in .github/workflows/update-linkspector-version.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/update-linkspector-version.yml#L30

shellcheck reported issue in this script: SC2086:info:5:22: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/update-linkspector-version.yml:30:9: shellcheck reported issue in this script: SC2086:info:5:22: Double quote to prevent globbing and word splitting [shellcheck]

Check warning on line 30 in .github/workflows/update-linkspector-version.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/update-linkspector-version.yml#L30

shellcheck reported issue in this script: SC2086:info:6:22: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/update-linkspector-version.yml:30:9: shellcheck reported issue in this script: SC2086:info:6:22: Double quote to prevent globbing and word splitting [shellcheck]

Check warning on line 30 in .github/workflows/update-linkspector-version.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/update-linkspector-version.yml#L30

shellcheck reported issue in this script: SC2086:info:8:21: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/update-linkspector-version.yml:30:9: shellcheck reported issue in this script: SC2086:info:8:21: Double quote to prevent globbing and word splitting [shellcheck]

Check warning on line 30 in .github/workflows/update-linkspector-version.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/update-linkspector-version.yml#L30

shellcheck reported issue in this script: SC2086:info:9:21: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/update-linkspector-version.yml:30:9: shellcheck reported issue in this script: SC2086:info:9:21: Double quote to prevent globbing and word splitting [shellcheck]

Check warning on line 30 in .github/workflows/update-linkspector-version.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/update-linkspector-version.yml#L30

shellcheck reported issue in this script: SC2086:info:10:21: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/update-linkspector-version.yml:30:9: shellcheck reported issue in this script: SC2086:info:10:21: Double quote to prevent globbing and word splitting [shellcheck]

Check warning on line 30 in .github/workflows/update-linkspector-version.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/update-linkspector-version.yml#L30

shellcheck reported issue in this script: SC2086:info:21:37: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/update-linkspector-version.yml:30:9: shellcheck reported issue in this script: SC2086:info:21:37: Double quote to prevent globbing and word splitting [shellcheck]

Check warning on line 30 in .github/workflows/update-linkspector-version.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/update-linkspector-version.yml#L30

shellcheck reported issue in this script: SC2086:info:23:37: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/update-linkspector-version.yml:30:9: shellcheck reported issue in this script: SC2086:info:23:37: Double quote to prevent globbing and word splitting [shellcheck]

Check warning on line 30 in .github/workflows/update-linkspector-version.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/update-linkspector-version.yml#L30

shellcheck reported issue in this script: SC2086:info:25:37: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/update-linkspector-version.yml:30:9: shellcheck reported issue in this script: SC2086:info:25:37: Double quote to prevent globbing and word splitting [shellcheck]

Check warning on line 30 in .github/workflows/update-linkspector-version.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/update-linkspector-version.yml#L30

shellcheck reported issue in this script: SC2086:info:27:37: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/update-linkspector-version.yml:30:9: shellcheck reported issue in this script: SC2086:info:27:37: Double quote to prevent globbing and word splitting [shellcheck]

Check warning on line 30 in .github/workflows/update-linkspector-version.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/update-linkspector-version.yml#L30

shellcheck reported issue in this script: SC2086:info:31:40: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/update-linkspector-version.yml:30:9: shellcheck reported issue in this script: SC2086:info:31:40: Double quote to prevent globbing and word splitting [shellcheck]

Check warning on line 30 in .github/workflows/update-linkspector-version.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/update-linkspector-version.yml#L30

shellcheck reported issue in this script: SC2086:info:33:41: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/update-linkspector-version.yml:30:9: shellcheck reported issue in this script: SC2086:info:33:41: Double quote to prevent globbing and word splitting [shellcheck]
echo "Current version: $CURRENT_VERSION"
echo "Latest version: $LATEST_VERSION"
current_major=$(echo $CURRENT_VERSION | cut -d'.' -f1)
current_minor=$(echo $CURRENT_VERSION | cut -d'.' -f2)
current_patch=$(echo $CURRENT_VERSION | cut -d'.' -f3)
Expand All @@ -36,14 +39,22 @@ jobs:
latest_minor=$(echo $LATEST_VERSION | cut -d'.' -f2)
latest_patch=$(echo $LATEST_VERSION | cut -d'.' -f3)
if [ "$LATEST_MAJOR" -ne "$CURRENT_MAJOR" ]; then
echo "VERSION_BUMP=major" >> $GITHUB_ENV
elif [ "$LATEST_MINOR" -ne "$CURRENT_MINOR" ]; then
echo "VERSION_BUMP=minor" >> $GITHUB_ENV
elif [ "$LATEST_PATCH" -ne "$CURRENT_PATCH" ]; then
echo "VERSION_BUMP=patch" >> $GITHUB_ENV
echo "Current major: $current_major"
echo "Current minor: $current_minor"
echo "Current patch: $current_patch"
echo "Latest major: $latest_major"
echo "Latest minor: $latest_minor"
echo "Latest patch: $latest_patch"
if [ "$latest_major" -ne "$current_major" ]; then
echo "VERSION_BUMP=bump:major" >> $GITHUB_ENV
elif [ "$latest_minor" -ne "$current_minor" ]; then
echo "VERSION_BUMP=bump:minor" >> $GITHUB_ENV
elif [ "$latest_patch" -ne "$current_patch" ]; then
echo "VERSION_BUMP=bump:patch" >> $GITHUB_ENV
else
echo "VERSION_BUMP=none" >> $GITHUB_ENV
echo "VERSION_BUMP=bump:patch" >> $GITHUB_ENV
fi
if [ "$LATEST_VERSION" != "$CURRENT_VERSION" ]; then
Expand Down Expand Up @@ -71,7 +82,5 @@ jobs:
title: Update linkspector version to ${{ env.LATEST_VERSION }}
body: This PR updates the linkspector version to ${{ env.LATEST_VERSION }}
labels: ${{ env.VERSION_BUMP }}
files: |
script.sh
env:
LATEST_VERSION: ${{ env.LATEST_VERSION }}

0 comments on commit e54ef8f

Please sign in to comment.