mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
* wip * add logs * update checksum * update test suite * temp run just compute flow tests * update file urle * add c2d md file * renamed files * update script * add script logs * update create example script * Updating CodeExamples.md * Updating ComputeExamples.md * readme text improvments * Updating ComputeExamples.md * more improvments * Updating ComputeExamples.md * again more improvments * Updating ComputeExamples.md * more readme improvments * Updating ComputeExamples.md * update chainid and service endpoint * Updating CodeExamples.md * Updating ComputeExamples.md * req fixes * Updating ComputeExamples.md * more fixes * Updating CodeExamples.md * Updating ComputeExamples.md * more fixes, ts configs etc * Updating ComputeExamples.md * mention typescript compile options * add comment regarding mint method * fix lint * Updating ComputeExamples.md * review fixes and sugestions * Updating ComputeExamples.md Co-authored-by: GitHub Actions Bot <>
41 lines
1.2 KiB
Bash
Executable File
41 lines
1.2 KiB
Bash
Executable File
# Check if the CodeExamples.md file has been changed
|
|
original=$(md5sum CodeExamples.md)
|
|
echo $original
|
|
npm run create:guide
|
|
new=$(md5sum CodeExamples.md)
|
|
echo $new
|
|
|
|
# Check if file has changed
|
|
if [ "$new" = "$original" ]; then
|
|
echo "CodeExamples.md file has not been changed"
|
|
else
|
|
echo "CodeExamples.md file has been changed. Committing changes"
|
|
# Stage the file, commit and push
|
|
git status
|
|
git add CodeExamples.md
|
|
git commit -m "Updating CodeExamples.md"
|
|
branch=${GITHUB_HEAD_REF#refs/heads/}
|
|
echo Pushing changes to branch: ${branch}
|
|
git push origin HEAD:${branch} --force
|
|
fi
|
|
|
|
# Check if the ComputeExamples.md file has been changed
|
|
original=$(md5sum ComputeExamples.md)
|
|
echo $original
|
|
npm run create:guidec2d
|
|
new=$(md5sum ComputeExamples.md)
|
|
echo $new
|
|
|
|
# Check if file has changed
|
|
if [ "$new" = "$original" ]; then
|
|
echo "ComputeExamples.md file has not been changed"
|
|
else
|
|
echo "ComputeExamples.md file has been changed. Committing changes"
|
|
# Stage the file, commit and push
|
|
git status
|
|
git add ComputeExamples.md
|
|
git commit -m "Updating ComputeExamples.md"
|
|
branch=${GITHUB_HEAD_REF#refs/heads/}
|
|
echo Pushing changes to branch: ${branch}
|
|
git push origin HEAD:${branch} --force
|
|
fi |