Skip to content

Commit

Permalink
Minor CI fixes (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname authored May 14, 2024
1 parent f4bce8a commit 49ad561
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/node-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,16 @@ jobs:
run: |
if [[ "${{ github.event_name }}" == "release" ]]
then
COMMIT_MESSAGE=$(git log -1 --pretty=format:"%s")
if [[ $COMMIT_MESSAGE == "[release]"* ]] && git diff --name-only HEAD~1 HEAD -- './packages/node/package.json'
TAG_NAME=${GITHUB_REF#refs/tags/}
if [[ $TAG_NAME == "node-algorand/"* ]]
then
echo "::set-output name=changes_found::true" >> "$GITHUB_OUTPUT"
echo "changes_found=true" >> "$GITHUB_OUTPUT"
else
echo "::set-output name=changes_found::false" >> "$GITHUB_OUTPUT"
echo "changes_found=false" >> "$GITHUB_OUTPUT"
fi
else
echo "::set-output name=changes_found::true" >> "$GITHUB_OUTPUT"
echo "changes_found=true" >> "$GITHUB_OUTPUT"
fi
node-build-push-docker:
needs: check
if: needs.check.outputs.changes_found == 'true'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
if [ -n "${{ github.event.head_commit.message }}" ]
then
echo "commit-message=${{ github.event.head_commit.message }}" >> "$GITHUB_OUTPUT"
echo "commit-message=\"${{ github.event.head_commit.message }}\"" >> "$GITHUB_OUTPUT"
else
echo "commit-message=\"$(git log -1 --pretty=%B | head -n 1)\"" >> "$GITHUB_OUTPUT"
fi
Expand Down
2 changes: 2 additions & 0 deletions scripts/update_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ for dir in packages/*; do
if [ -d "$dir" ] && [[ $(git ls-files "$dir") ]]; then
prepare_package_release "$dir"
fi

git add .yarn/versions
done

# prepare_package_release "$1"

0 comments on commit 49ad561

Please sign in to comment.