Skip to content

Commit

Permalink
Fixing the path for snapcraft check
Browse files Browse the repository at this point in the history
Thanks Jon!
  • Loading branch information
kz6fittycent committed Dec 15, 2023
1 parent a73d3ef commit 1c731f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sync-version-with-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# Update the snapcraft.yaml to match upstream version
API="https://api.github.com/repos/jenkinsci/jenkins/releases/latest"
VERSION=$(curl -s "${API}" | grep -i name | awk 'FNR == 3 {print $2}' | cut -d ',' -f1 | sed 's/"//g')
CRAFT=$(grep -i version ~/snapcraft.yaml | awk '{print $2}' | sed 's/"//g')
CRAFT=$(grep -i version snap/snapcraft.yaml | awk '{print $2}' | sed 's/"//g')
# Running checks here
if [[ "${VERSION}" < "${CRAFT}" ]]
then
Expand Down

0 comments on commit 1c731f5

Please sign in to comment.